From: Keir Fraser Subject: Re: [PATCH 3/6] eliminate cpu_set() Date: Mon, 07 Nov 2011 14:48:15 +0000 Message-ID: References: <4EB7FBB7020000780005F5E9@novprvoes0310.provo.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <4EB7FBB7020000780005F5E9@novprvoes0310.provo.novell.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Jan Beulich Cc: "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org On 07/11/2011 14:39, "Jan Beulich" wrote: >> I don't like set_cpu_{present,online} taking a boolean clear/set flag. There >> is no caller that can both set and clear a flag, so it is always hardcoded >> as 0 or 1. And then the reader has to make a (probably not hard) guess what >> that means. >> >> If you must add an abstraction interface here, better to define four of >> them: {set,clear}_cpu_{present,online}. > > Hmm, I don't like this interface design too much either, but again wanted > to follow Linux rather than cooking our own. Do you really want us to > diverge in this respect? Yes. Apart from maybe the code that tickles the remote APIC, our smpboot code is already well diverged from Linux. -- Keir