lkml.org 
[lkml]   [2009]   [Jun]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [RFD PATCH 2/4] cpu: sysfs interface for hotplugging bunch of CPUs.
On Tue, Jun 16, 2009 at 11:22:56AM -0500, Nathan Lynch wrote:
> Gautham R Shenoy <ego@in.ibm.com> writes:
> > echo 2,3 > /sys/devices/system/cpu/offline #Offlines CPUs 2 and 3
> > echo 4 > /sys/devices/sytem/cpu/offline #Offlines CPU 4
> > echo 2-4 > /sys/devices/system/cpu/online #Onlines CPU 2,3,4
> >
> > This patch changes the permissions of these sysfs files from 0444 to 0644.
> > It provides a dummy store function, which currently parses the input
> > provided by the user and copies them to another debug cpumask structure,
> > which can be accessed using the sysfs interfaces:
> > /sys/devices/system/cpu/debug_offline
> > and
> > /sys/devices/system/cpu/debug_online
> >
> > Thus on performing a
> > echo 2,3 > /sys/devices/system/cpu/offline
> > the operation
> > cat /sys/devices/system/cpu/debug_offline
> > should yield
> > 2-3
> > as the result.
>
> These debug_(on|off)line attributes aren't intended to be in the final
> result, are they? They don't seem useful beyond the development phase
> of this feature...

No, they aren't intended to be in the final result.

--
Thanks and Regards
gautham


\
 
 \ /
  Last update: 2009-06-16 18:37    [from the cache]
©2003-2011 Jasper Spaans