Re: [RFC PATCH] sysfs: Add /sys/kernel/realtime entry

Greg Kroah-Hartman <[email protected]> Thu, 9 Jul 2026 16:46:19 +0200
Newsgroups org.kernel.vger.linux-rt-users,dev.linux.lists.driver-core,dev.linux.lists.linux-rt-devel
Message-ID <2026070922-kilowatt-matador-5e1c@gregkh>
On Thu, Jul 09, 2026 at 04:31:08PM +0200, Sebastian Andrzej Siewior wrote:
> Hi,
> 
> The following patch sat in the RT queue for almost 15years now. I can't
> find its origin on the list.
> All it does is adding /sys/kernel/realtime once PREEMPT_RT is enabled
> and returns 1.
> 
> Is this something that is still wanted and considered useful?
> Is this something that can be expressed better by other means?
> 
> There was an in person discussion about this and it was suggested to add
> /sys/kernel/realtime as a folder and having individual realtime features
> as files. I don't remember a single feature that would quality for this
> today but who knows. This is all I remember so far.
> 
> Now. Discussion go!

At the very least, it's not ok as it's not documented in
Documentation/ABI/ :)

But really, why is this needed?  Userspace shouldn't care, right?

And checkpatch should complain about the sprintf(), should be
sysfs_emit().

thanks,

greg k-h