]> www.infradead.org Git - users/jedix/linux-maple.git/commit
s390/alternatives: Rework to allow for callbacks
authorHeiko Carstens <hca@linux.ibm.com>
Tue, 16 Jul 2024 11:50:53 +0000 (13:50 +0200)
committerVasily Gorbik <gor@linux.ibm.com>
Tue, 23 Jul 2024 14:02:31 +0000 (16:02 +0200)
commitb3e0c5f734f934dab1cfdef669e3baa165a0cbfe
tree08104be96abe1be8cfd1d66337f69fea8d2f4569
parent030f7951c5b293739301fb616add0f1d3fb46073
s390/alternatives: Rework to allow for callbacks

Rework alternatives to allow for callbacks. With this every
alternative entry has additional data encoded:

- When (aka context) an alternative is supposed to be applied

- The type of an alternative, which allows for type specific handling
  and callbacks

- Extra type specific payload (patch information), which can be passed
  to callbacks in order to decide if an alternative should be applied
  or not

With this only the "late" context is implemented, which means there is
no change to the previous behaviour. All code is just converted to the
more generic new infrastructure.

Reviewed-by: Alexander Gordeev <agordeev@linux.ibm.com>
Tested-by: Sven Schnelle <svens@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
arch/s390/include/asm/alternative.h
arch/s390/include/asm/processor.h
arch/s390/include/asm/spinlock.h
arch/s390/kernel/alternative.c
arch/s390/kernel/entry.S
arch/s390/lib/spinlock.c