Re: [PATCH 2/2] show nohz_full cpus in sysfs

From: Rik van Riel
Date: Sat Mar 28 2015 - 12:16:23 EST


On 03/28/2015 12:02 PM, Frederic Weisbecker wrote:
> 2015-03-27 22:50 GMT+01:00 <riel@xxxxxxxxxx>:
>> From: Rik van Riel <riel@xxxxxxxxxx>
>>
>> Currently there is no way to query which CPUs are in nohz_full
>> mode from userspace.
>
> Well you can watch dmesg | grep NO_HZ
> But surely sysfs is more convenient from an app.
>
> I guess it's ok, as long as it's strictly Read Only. Here it seems to
> be the case. And it's not chmod'able, right?

I followed the other code for files in that directory.

Quick testing shows that the cpu info files in
/sys/devices/system/cpu are chmoddable, but writing
to them fails with -EIO because there is no function
set up to handle writes. So yeah, read only :)

--
All rights reversed
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/