From mboxrd@z Thu Jan 1 00:00:00 1970 From: Arjan van de Ven Subject: Re: [PATCHv2 3/5] cpuidle: add support for states that affect multiple cpus Date: Thu, 15 Mar 2012 18:52:05 -0700 Message-ID: <4F629CC5.60402@linux.intel.com> References: <1331749794-8056-1-git-send-email-ccross@android.com> <1331749794-8056-4-git-send-email-ccross@android.com> <87lin18l7o.fsf@ti.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-pm-bounces@lists.linux-foundation.org Errors-To: linux-pm-bounces@lists.linux-foundation.org To: Colin Cross Cc: Kevin Hilman , Len Brown , Kay Sievers , linux-kernel@vger.kernel.org, Amit Kucheria , linux-pm@lists.linux-foundation.org, Greg Kroah-Hartman , linux-arm-kernel@lists.infradead.org List-Id: linux-pm@vger.kernel.org On 3/15/2012 5:20 PM, Colin Cross wrote: > Oops, dropped the atomic_dec when I merged from two separate functions > for up and down to a single function that takes a bool. generally in Linux we tend to not like "multiplexer" common functions like this. my suggestion: make your current function a __ prefixed one, then provide 2 small inlines that call the __ one...