From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ingo Molnar Date: Fri, 08 Oct 2010 08:26:31 +0000 Subject: Re: [lm-sensors] [PATCH v2] x86/therm_throt.c: Fix error handling Message-Id: <20101008082631.GE13754@elte.hu> List-Id: References: <1283905550-18571-1-git-send-email-fenghua.yu@intel.com> In-Reply-To: <1283905550-18571-1-git-send-email-fenghua.yu@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Fenghua Yu Cc: H Peter Anvin , Thomas Gleixner , Guenter Roeck , Jean Delvare , Jin Dongming , Hidetoshi Seto , linux-kernel , lm-sensors * Fenghua Yu wrote: > #ifdef CONFIG_HOTPLUG_CPU > mutex_unlock(&therm_cpu_lock); > #endif > +#ifdef CONFIG_HOTPLUG_CPU > + mutex_unlock(&therm_cpu_lock); > +#endif That's all very ugly. Thanks, Ingo _______________________________________________ lm-sensors mailing list lm-sensors@lm-sensors.org http://lists.lm-sensors.org/mailman/listinfo/lm-sensors From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755994Ab0JHI0v (ORCPT ); Fri, 8 Oct 2010 04:26:51 -0400 Received: from mx2.mail.elte.hu ([157.181.151.9]:60044 "EHLO mx2.mail.elte.hu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755585Ab0JHI0t (ORCPT ); Fri, 8 Oct 2010 04:26:49 -0400 Date: Fri, 8 Oct 2010 10:26:31 +0200 From: Ingo Molnar To: Fenghua Yu Cc: H Peter Anvin , Thomas Gleixner , Guenter Roeck , Jean Delvare , Jin Dongming , Hidetoshi Seto , linux-kernel , lm-sensors Subject: Re: [PATCH v2] x86/therm_throt.c: Fix error handling in thermal_throttle_add_dev Message-ID: <20101008082631.GE13754@elte.hu> References: <1283905550-18571-1-git-send-email-fenghua.yu@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1283905550-18571-1-git-send-email-fenghua.yu@intel.com> User-Agent: Mutt/1.5.20 (2009-08-17) X-ELTE-SpamScore: -2.0 X-ELTE-SpamLevel: X-ELTE-SpamCheck: no X-ELTE-SpamVersion: ELTE 2.0 X-ELTE-SpamCheck-Details: score=-2.0 required=5.9 tests=BAYES_00 autolearn=no SpamAssassin version=3.2.5 -2.0 BAYES_00 BODY: Bayesian spam probability is 0 to 1% [score: 0.0000] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Fenghua Yu wrote: > #ifdef CONFIG_HOTPLUG_CPU > mutex_unlock(&therm_cpu_lock); > #endif > +#ifdef CONFIG_HOTPLUG_CPU > + mutex_unlock(&therm_cpu_lock); > +#endif That's all very ugly. Thanks, Ingo