From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S263620AbTIFHXP (ORCPT ); Sat, 6 Sep 2003 03:23:15 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S264589AbTIFHXP (ORCPT ); Sat, 6 Sep 2003 03:23:15 -0400 Received: from hermes.py.intel.com ([146.152.216.3]:13028 "EHLO hermes.py.intel.com") by vger.kernel.org with ESMTP id S263620AbTIFHXO convert rfc822-to-8bit (ORCPT ); Sat, 6 Sep 2003 03:23:14 -0400 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7BIT X-MimeOLE: Produced By Microsoft Exchange V6.0.6375.0 Subject: RE: [PATCH] idle using PNI monitor/mwait (take 3) Date: Sat, 6 Sep 2003 00:22:50 -0700 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [PATCH] idle using PNI monitor/mwait (take 3) Thread-Index: AcN0QWvCzjVMTZaHTwWm7SEoqkaeeAAAZPHQ From: "Pallipadi, Venkatesh" To: "Zwane Mwaikambo" , "Nakajima, Jun" Cc: "Andrew Morton" , , "Saxena, Sunil" , "Mallick, Asit K" X-OriginalArrivalTime: 06 Sep 2003 07:22:51.0218 (UTC) FILETIME=[AE4B5B20:01C37447] Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org > -----Original Message----- > From: Zwane Mwaikambo [mailto:zwane@arm.linux.org.uk] > On Fri, 5 Sep 2003, Nakajima, Jun wrote: > > > + if (!pm_idle) { > > + pm_idle = mwait_idle; > > + } > > + return; > > + } > > + pm_idle = default_idle; > > You don't have to set that. > The idea is to handle smp systems with asymmetric CPUs (if any such system is built one day :)). We will use mwait, only if all the CPUs support it. If any CPU doesn't support mwait, then we switch back to default_idle. Note that pm_idle will be NULL by default. Thanks, -Venkatesh