Linux-parisc archive on
 help / color / Atom feed
* [PATCH v2 08/14] parisc: Replace cpu_up/down with device_online/offline
       [not found] <>
@ 2019-11-25 11:27 ` Qais Yousef
  0 siblings, 0 replies; only message in thread
From: Qais Yousef @ 2019-11-25 11:27 UTC (permalink / raw)
  To: Thomas Gleixner, Greg Kroah-Hartman
  Cc: Qais Yousef, James E.J. Bottomley, Helge Deller, Richard Fontana,
	Armijn Hemel, linux-parisc, linux-kernel

The core device API performs extra housekeeping bits that are missing
from directly calling cpu_up/down.

See commit a6717c01ddc2 ("powerpc/rtas: use device model APIs and
serialization during LPM") for an example description of what might go

This also prepares to make cpu_up/down a private interface for anything
but the cpu subsystem.

Acked-by: Helge Deller <>
Signed-off-by: Qais Yousef <>
CC: "James E.J. Bottomley" <>
CC: Helge Deller <>
CC: Richard Fontana <>
CC: Armijn Hemel <>
CC: Greg Kroah-Hartman <>
CC: Thomas Gleixner <>
 arch/parisc/kernel/processor.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/arch/parisc/kernel/processor.c b/arch/parisc/kernel/processor.c
index 13f771f74ee3..4dde5fe78f0c 100644
--- a/arch/parisc/kernel/processor.c
+++ b/arch/parisc/kernel/processor.c
@@ -212,7 +212,9 @@ static int __init processor_probe(struct parisc_device *dev)
 #ifdef CONFIG_SMP
 	if (cpuid) {
 		set_cpu_present(cpuid, true);
-		cpu_up(cpuid);
+		lock_device_hotplug();
+		device_online(get_cpu_device(cpuid));
+		unlock_device_hotplug();

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, back to index

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <>
2019-11-25 11:27 ` [PATCH v2 08/14] parisc: Replace cpu_up/down with device_online/offline Qais Yousef

Linux-parisc archive on

Archives are clonable:
	git clone --mirror linux-parisc/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 linux-parisc linux-parisc/ \
	public-inbox-index linux-parisc

Example config snippet for mirrors

Newsgroup available over NNTP:

AGPL code for this site: git clone