From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754390AbdBFOxv (ORCPT ); Mon, 6 Feb 2017 09:53:51 -0500 Received: from bombadil.infradead.org ([65.50.211.133]:43454 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752580AbdBFOxu (ORCPT ); Mon, 6 Feb 2017 09:53:50 -0500 Date: Mon, 6 Feb 2017 15:53:46 +0100 From: Peter Zijlstra To: Ingo Molnar Cc: linux-kernel@vger.kernel.org, Andrew Morton , Linus Torvalds , Mike Galbraith , Oleg Nesterov , Thomas Gleixner Subject: Re: [PATCH 78/89] sched/core: Remove the tsk_cpus_allowed() wrapper Message-ID: <20170206145346.GN6515@twins.programming.kicks-ass.net> References: <1486387772-18837-1-git-send-email-mingo@kernel.org> <1486387772-18837-79-git-send-email-mingo@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1486387772-18837-79-git-send-email-mingo@kernel.org> User-Agent: Mutt/1.5.23.1 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Feb 06, 2017 at 02:29:21PM +0100, Ingo Molnar wrote: > So the original intention of tsk_cpus_allowed() was to 'future-proof' > the field - but it's pretty ineffectual at that, because half of > the code uses ->cpus_allowed directly ... > > Also, the wrapper makes the code longer than the original expression! > > So just get rid of it. This also shrinks a bit. Please keep this and the tsk_nr_cpus_allowed() thing. RT uses them.