[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <alpine.DEB.2.21.1903261452290.1789@nanos.tec.linutronix.de>
Date: Tue, 26 Mar 2019 14:53:04 +0100 (CET)
From: Thomas Gleixner <tglx@...utronix.de>
To: Josh Poimboeuf <jpoimboe@...hat.com>
cc: linux-kernel@...r.kernel.org, x86@...nel.org,
Andrea Arcangeli <aarcange@...hat.com>,
Waiman Long <longman@...hat.com>,
Peter Zijlstra <peterz@...radead.org>,
Jiri Kosina <jikos@...nel.org>
Subject: Re: [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
Powered by blists - more mailing lists