From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756023AbZENW2n (ORCPT ); Thu, 14 May 2009 18:28:43 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753653AbZENW2e (ORCPT ); Thu, 14 May 2009 18:28:34 -0400 Received: from www.tglx.de ([62.245.132.106]:49597 "EHLO www.tglx.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753016AbZENW2d (ORCPT ); Thu, 14 May 2009 18:28:33 -0400 Date: Fri, 15 May 2009 00:27:14 +0200 (CEST) From: Thomas Gleixner To: Len Brown cc: Janne Kulmala , Frans Pop , Linux Kernel Mailing List , Steven Rostedt , Ingo Molnar , johnstul@us.ibm.com Subject: Re: [PATCH] ACPI: idle: fix init-time TSC check regression In-Reply-To: Message-ID: References: <200905110226.50115.elendil@planet.nl> <4A0855A5.8040109@tut.fi> User-Agent: Alpine 2.00 (LFD 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 14 May 2009, Len Brown wrote: > From: Len Brown > > A previous 2.6.30 patch, a71e4917dc0ebbcb5a0ecb7ca3486643c1c9a6e2, > (ACPI: idle: mark_tsc_unstable() at init-time, not run-time) > erroneously disabled the TSC on systems that did not actually > have valid deep C-states. > > Move the check after the deep-C-states are validated, > via new helper, tsc_check_state(), hich replaces tsc_halts_in_c(). > > Signed-off-by: Len Brown > Acked-by: Venkatesh Pallipadi > --- > Thomas, > I decided to use a tsc-specific helper > rather than piggyback on acpi_timer_check_state(), > since that is not general, but rather LAPIC timer specific. > (and I'll re-name that to reflect its specific function > in a cosmetic follow-up patch) I have no strong opinion on that :) > + if (cx->valid) > + tsc_check_state(cx->type); > > if (cx->valid) > working++; Could do with if (cx->valid) { tsc_check_state(cx->type); working++; } Otherwise Acked-by: Thomas Gleixner