Re: [PATCH 07/41] cpuset: Set up interface for nohz flag

From: Christoph Lameter
Date: Tue May 08 2012 - 11:16:07 EST


On Tue, 8 May 2012, Frederic Weisbecker wrote:

> > As I have said before: It would be much simpler if one could specify the
> > set of nohz cpus independently of cpusets. Having a flag f.e. as a file in
> >
> >        /sys/devices/system/cpu/cpuX/nohz
>
> I don't know if it would be simpler. It's just a different interface
> to set a per-CPU property.
> Cpusets of sysfs, I don't mind either way.
>
> What is the usual policy on where to put which kind of CPU property?

/sys/devices/system/cpu contains the state information for each processor.

There are already cpumasks in there that can be used to monitor and modify
per processor behavior.