Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754190AbYBLWDf (ORCPT ); Tue, 12 Feb 2008 17:03:35 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752585AbYBLWD1 (ORCPT ); Tue, 12 Feb 2008 17:03:27 -0500 Received: from terminus.zytor.com ([198.137.202.10]:40864 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752336AbYBLWD0 (ORCPT ); Tue, 12 Feb 2008 17:03:26 -0500 Message-Id: <200802122156.m1CLufgn013359@tazenda.hos.anvin.org> From: "H. Peter Anvin" To: Linus Torvalds , Linux Kernel Mailing List Date: Tue, 12 Feb 2008 13:52:37 -0800 Subject: [PATCH] timeconst.pl: correct reversal of USEC_TO_HZ and HZ_TO_USEC Cc: Eric Piel , "Carlos R. Mafra" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1001 Lines: 30 The USEC_TO_HZ and HZ_TO_USEC constant sets were mislabelled, with seriously incorrect results. This among other things manifested itself as cpufreq not working when a tickless kernel was configured. Signed-off-by: H. Peter Anvin --- kernel/timeconst.pl | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/kernel/timeconst.pl b/kernel/timeconst.pl index 62b1287..4146803 100644 --- a/kernel/timeconst.pl +++ b/kernel/timeconst.pl @@ -339,7 +339,7 @@ sub output($@) print "\n"; foreach $pfx ('HZ_TO_MSEC','MSEC_TO_HZ', - 'USEC_TO_HZ','HZ_TO_USEC') { + 'HZ_TO_USEC','USEC_TO_HZ') { foreach $bit (32, 64) { foreach $suf ('MUL', 'ADJ', 'SHR') { printf "#define %-23s %s\n", -- 1.5.3.8 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/