stop_machine: Add stop_core_cpuslocked() for per-core operations
authorPeter Zijlstra <peterz@infradead.org>
Fri, 6 May 2022 22:54:01 +0000 (15:54 -0700)
committerHans de Goede <hdegoede@redhat.com>
Thu, 12 May 2022 13:35:29 +0000 (15:35 +0200)
commit2760f5a415c3b86c6394738c6cff740c8b4ce664
tree97c1c0391a33742be5c5ef7b7b0dd0b990bf4f97
parentdb1af12929c99d15fc04cc5c4447b87ab51eab0a
stop_machine: Add stop_core_cpuslocked() for per-core operations

Hardware core level testing features require near simultaneous execution
of WRMSR instructions on all threads of a core to initiate a test.

Provide a customized cut down version of stop_machine_cpuslocked() that
just operates on the threads of a single core.

Suggested-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Tony Luck <tony.luck@intel.com>
Reviewed-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/r/20220506225410.1652287-4-tony.luck@intel.com
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
include/linux/stop_machine.h
kernel/stop_machine.c