OSDN Git Service

pseries/pseries: Add code to online/offline CPUs of a DLPAR node
authorGautham R Shenoy <ego@in.ibm.com>
Thu, 26 Nov 2009 09:58:55 +0000 (09:58 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Wed, 9 Dec 2009 06:09:35 +0000 (17:09 +1100)
commitb6db63d1a7f0138f348ba7a648df35ac6365988e
treed5e3aa14ba93f2dac15820bfec9fa2a6ae104206
parent8389b37dffdc695b4fb363ebe0ed9748bb3b48d0
pseries/pseries: Add code to online/offline CPUs of a DLPAR node

Currently the cpu-allocation/deallocation on pSeries is a
two step process from the Userspace.

- Set the indicators and update the device tree by writing to the sysfs
  tunable "probe" during allocation and "release" during deallocation.
- Online / Offline the CPUs of the allocated/would_be_deallocated node by
  writing to the sysfs tunable "online".

This patch adds kernel code to online/offline the CPUs soon_after/just_before
they have been allocated/would_be_deallocated. This way, the userspace tool
that performs DLPAR operations would only have to deal with one set of sysfs
tunables namely "probe" and release".

Signed-off-by: Gautham R Shenoy <ego@in.ibm.com>
Signed-off-by: Nathan Fontenot <nfont@austin.ibm.com>
Acked-by: Vaidyanathan Srinivasan <svaidy@linux.vnet.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/platforms/pseries/dlpar.c