diff options
author | James Morse <[email protected]> | 2023-11-21 13:45:22 +0000 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2023-12-06 12:41:50 +0900 |
commit | 0d122fb60046cd888877a6029cc23863d4a1b9e3 (patch) | |
tree | e9082adc63456fdab24c955519b32e89387b9f45 /lib/test_fortify/write_overflow-strlcpy-src.c | |
parent | db3ba29a8315d89736b8af5c1ad945c9967d7655 (diff) |
LoongArch: Use the __weak version of arch_unregister_cpu()
LoongArch provides its own arch_unregister_cpu(). This clears the
hotpluggable flag, then unregisters the CPU.
It isn't necessary to clear the hotpluggable flag when unregistering
a cpu. unregister_cpu() writes NULL to the percpu cpu_sys_devices
pointer, meaning cpu_is_hotpluggable() will return false, as
get_cpu_device() has returned NULL.
Remove arch_unregister_cpu() and use the __weak version.
Signed-off-by: James Morse <[email protected]>
Reviewed-by: Jonathan Cameron <[email protected]>
Reviewed-by: Gavin Shan <[email protected]>
Signed-off-by: "Russell King (Oracle)" <[email protected]>
Reviewed-by: Thomas Gleixner <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strlcpy-src.c')
0 files changed, 0 insertions, 0 deletions