lkml.org 
[lkml]   [2019]   [Mar]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] cpu/hotplug: Create SMT sysfs interface for all arches
On Tue, 26 Mar 2019, Josh Poimboeuf wrote:
> On Sun, Mar 24, 2019 at 09:13:18PM +0100, Thomas Gleixner wrote:
> > Second thoughts. I'm not really convinced that changing the meaning of
> > notsupported and in fact overloading it, is the right thing to do.
> > notsupported means now:
> >
> > CPU does not support it - OR - architecture does not support it
> >
> > That's not pretty and we are surely not short of state space. There are
> > several options for handling this:
> >
> > 1) Do not expose the state file, just expose the active file
> >
> > 2) Expose the state file, but return -ENOTSUPP or some other sensible error
> > code
> >
> > 3) Expose the state file and let show return 'notimplemented' which is
> > more accurate. That wouldn't even require to expand the state space
> > enum. It just can be returned unconditionally.
>
> Makes sense. I like #3. I can post another version.

Yes, please.

Thanks,

tglx

\
 
 \ /
  Last update: 2019-03-26 14:54    [W:0.065 / U:1.376 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site