Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932971AbZDHMC2 (ORCPT ); Wed, 8 Apr 2009 08:02:28 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932808AbZDHLmV (ORCPT ); Wed, 8 Apr 2009 07:42:21 -0400 Received: from mx3.mail.elte.hu ([157.181.1.138]:33431 "EHLO mx3.mail.elte.hu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932797AbZDHLmP (ORCPT ); Wed, 8 Apr 2009 07:42:15 -0400 Date: Wed, 8 Apr 2009 13:42:03 +0200 From: Ingo Molnar To: Mahesh Jagannath Salgaonkar Cc: Linux Kernel , Suresh B Siddha , Venkatesh Pallipadi , svaidy@linux.vnet.ibm.com, balbir@linux.vnet.ibm.com, dipankar@in.ibm.com, Peter Zijlstra Subject: Re: [PATCH] Don't export sched_mc_power_savings on multi-socket single core system Message-ID: <20090408114203.GA30441@elte.hu> References: <49DC89A3.3090605@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <49DC89A3.3090605@linux.vnet.ibm.com> User-Agent: Mutt/1.5.18 (2008-05-17) X-ELTE-VirusStatus: clean X-ELTE-SpamScore: -1.5 X-ELTE-SpamLevel: X-ELTE-SpamCheck: no X-ELTE-SpamVersion: ELTE 2.0 X-ELTE-SpamCheck-Details: score=-1.5 required=5.9 tests=BAYES_00 autolearn=no SpamAssassin version=3.2.5 -1.5 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 Content-Length: 1093 Lines: 25 * Mahesh Jagannath Salgaonkar wrote: > Fix to prevent sched_mc_power_saving from being exported through > sysfs for multi-scoket single core system. Max cores should be > always greater than one (1). My earlier patch that introduced fix > for not exporting 'sched_mc_power_saving' on laptops broke it on > multi-socket single core system. This fix addresses issue on both > laptop and multi-socket single core system. Below are the Test > results: > +#define mc_capable() (boot_cpu_data.x86_max_cores > 1) && \ > + (cpumask_weight(cpu_core_mask(0)) != nr_cpu_ids) > #define smt_capable() (smp_num_siblings > 1) patch looks good but is whitespace damaged (all tabs were converted to spaces). See Documentation/email-clients.txt about how to set up your client. Ingo -- 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/