summaryrefslogtreecommitdiff
path: root/lib/debugobjects.c
diff options
context:
space:
mode:
authorHelge Deller <deller@gmx.de>2023-05-19 12:12:06 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-05-30 14:03:18 +0100
commite1f14a4071406fbb0cd41b031027133206762b47 (patch)
treec92183820e23dad0a0aa46d9c078424bec7f2d68 /lib/debugobjects.c
parentbd90ac0002d1a4e480d6afb0dd84bf0793913c75 (diff)
parisc: Use num_present_cpus() in alternative patching code
commit b6405f0829d7b1dd926ba3ca5f691cab835abfaa upstream. When patching the kernel code some alternatives depend on SMP vs. !SMP. Use the value of num_present_cpus() instead of num_online_cpus() to decide, otherwise we may run into issues if and additional CPU is enabled after having loaded a module while only one CPU was enabled. Signed-off-by: Helge Deller <deller@gmx.de> Cc: <stable@vger.kernel.org> # v6.1+ Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'lib/debugobjects.c')
0 files changed, 0 insertions, 0 deletions