]> Git Repo - linux.git/commit
powernv/memtrace: always online added memory blocks
authorDavid Hildenbrand <[email protected]>
Tue, 7 Apr 2020 03:07:28 +0000 (20:07 -0700)
committerLinus Torvalds <[email protected]>
Tue, 7 Apr 2020 17:43:40 +0000 (10:43 -0700)
commited7f9fec8c8f8227ebd1fb69feda60ce4a7df61f
tree57078da7e5b1304e09078a70b7299c73a7bfa711
parent4dc8207bfd45799525f882e1039e63e9438d605e
powernv/memtrace: always online added memory blocks

Let's always try to online the re-added memory blocks.  In case
add_memory() already onlined the added memory blocks, the first
device_online() call will fail and stop processing the remaining memory
blocks.

This avoids manually having to check memhp_auto_online.

Note: PPC always onlines all hotplugged memory directly from the kernel as
well - something that is handled by user space on other architectures.

Signed-off-by: David Hildenbrand <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Reviewed-by: Wei Yang <[email protected]>
Reviewed-by: Baoquan He <[email protected]>
Acked-by: Michal Hocko <[email protected]>
Cc: Benjamin Herrenschmidt <[email protected]>
Cc: Paul Mackerras <[email protected]>
Cc: Michael Ellerman <[email protected]>
Cc: Greg Kroah-Hartman <[email protected]>
Cc: Oscar Salvador <[email protected]>
Cc: "Rafael J. Wysocki" <[email protected]>
Cc: Eduardo Habkost <[email protected]>
Cc: Haiyang Zhang <[email protected]>
Cc: Igor Mammedov <[email protected]>
Cc: "K. Y. Srinivasan" <[email protected]>
Cc: Stephen Hemminger <[email protected]>
Cc: Vitaly Kuznetsov <[email protected]>
Cc: Wei Liu <[email protected]>
Cc: Yumei Huang <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Linus Torvalds <[email protected]>
arch/powerpc/platforms/powernv/memtrace.c
This page took 0.053899 seconds and 4 git commands to generate.