Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S265258AbUA2QmU (ORCPT ); Thu, 29 Jan 2004 11:42:20 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S266235AbUA2QmU (ORCPT ); Thu, 29 Jan 2004 11:42:20 -0500 Received: from hq.pm.waw.pl ([195.116.170.10]:31399 "EHLO hq.pm.waw.pl") by vger.kernel.org with ESMTP id S265258AbUA2Ql7 (ORCPT ); Thu, 29 Jan 2004 11:41:59 -0500 To: Marcelo Tosatti Cc: lkml Subject: Re: [TRIVIAL PATCH] 2.4.25pre7 warning fix References: From: Krzysztof Halasa Date: Thu, 29 Jan 2004 17:38:49 +0100 In-Reply-To: (Marcelo Tosatti's message of "Wed, 28 Jan 2004 09:42:30 -0200 (BRST)") Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1194 Lines: 37 Marcelo Tosatti writes: > Btw, why do we need cyclone_setup() for !CONFIG_X86_SUMMIT ? > > /* No-cyclone stubs */ > #ifndef CONFIG_X86_SUMMIT > int __init cyclone_setup(char *str) > { > printk(KERN_ERR "cyclone: Kernel not compiled with > CONFIG_X86_SUMMIT, cannot use the cyclone-timer.\n"); > return 1; > } After having a closer look at it I think we should: 1. if CONFIG_X86_TSC is set: - make calibrate_tsc() failure a fatal error - assume use_tsc = 1 and x86_udelay_tsc = 1 and optimize them out with preprocessor 2. if CONFIG_X86_SUMMIT is _not_ set: - assume use_cyclone = 0 and optimize it out as well. - cyclone_setup() etc should go out. 3. I would rename CONFIG_X86_TSC to something like CONFIG_X86_TSC_FORCE - the current name is misleading. It wouldn't affect .config. This is all 2.4-only, as 2.6 is a little different here. Comments? -- Krzysztof Halasa, B*FH - 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/