Re: [PATCH 5/5] kernel handling of CPU DLPAR

2009-09-15 Thread Brian King
Nathan Fontenot wrote: +static ssize_t cpu_probe_store(struct class *class, const char *buf, + size_t count) +{ +struct device_node *dn; +u32 drc_index; +char *cpu_name; +int rc; + +drc_index = simple_strtoull(buf, NULL, 0); Can just use

Re: [PATCH 5/5] kernel handling of CPU DLPAR

2009-09-14 Thread Andrey Panin
On 254, 09 11, 2009 at 04:15:33PM -0500, Nathan Fontenot wrote: This adds the capability to DLPAR add and remove CPUs from the kernel. The creates two new files /sys/devices/system/cpu/probe and /sys/devices/system/cpu/release to handle the DLPAR addition and removal of CPUs respectively.

Re: [PATCH 5/5] kernel handling of CPU DLPAR

2009-09-14 Thread Nathan Fontenot
Andrey Panin wrote: On 254, 09 11, 2009 at 04:15:33PM -0500, Nathan Fontenot wrote: This adds the capability to DLPAR add and remove CPUs from the kernel. The creates two new files /sys/devices/system/cpu/probe and /sys/devices/system/cpu/release to handle the DLPAR addition and removal of CPUs

[PATCH 5/5] kernel handling of CPU DLPAR

2009-09-11 Thread Nathan Fontenot
This adds the capability to DLPAR add and remove CPUs from the kernel. The creates two new files /sys/devices/system/cpu/probe and /sys/devices/system/cpu/release to handle the DLPAR addition and removal of CPUs respectively. CPU DLPAR add is accomplished by writing the drc-index of the CPU to