Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758080AbXI2Uln (ORCPT ); Sat, 29 Sep 2007 16:41:43 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751646AbXI2Ulg (ORCPT ); Sat, 29 Sep 2007 16:41:36 -0400 Received: from mail.tmr.com ([64.65.253.246]:34506 "EHLO gaimboi.tmr.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751496AbXI2Ulg (ORCPT ); Sat, 29 Sep 2007 16:41:36 -0400 Message-ID: <46FEB9CA.9090703@tmr.com> Date: Sat, 29 Sep 2007 16:47:06 -0400 From: Bill Davidsen User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.8) Gecko/20061105 SeaMonkey/1.0.6 MIME-Version: 1.0 To: Alexey Starikovskiy CC: Mark Lord , "H. Peter Anvin" , linux-kernel@vger.kernel.org Subject: Re: regression in 2.6.23-rc8 - power off failed References: <20070929005453.GA4475@erig.dyndns.org> <46FDC0EB.3070003@zytor.com> <20070929082233.GA3447@erig.dyndns.org> <46FE0D29.4090706@zytor.com> <20070929093553.GA4451@erig.dyndns.org> <46FE47C7.6070901@rtr.ca> <46FE6E17.6070109@suse.de> In-Reply-To: <46FE6E17.6070109@suse.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1078 Lines: 27 Alexey Starikovskiy wrote: > -static void > -acpi_power_off (void) > -{ > - printk("%s called\n",__FUNCTION__); > - /* Some SMP machines only can poweroff in boot CPU */ > - set_cpus_allowed(current, cpumask_of_cpu(0)); > ACPI in kernel 2.6.12 did disable non-boot cpus too in powe_off. > Later only comment was left for some reason... > Am I midreading that code, or does it really assume that the boot cpu is always zero? Or just that zero will be able to do the power off? In any case I have had an SMP machine which did not have a CPU zero, and it was discussed here, I believe. Wonder what happens if you set affinity to a CPU you don't have... -- Bill Davidsen "We have more to fear from the bungling of the incompetent than from the machinations of the wicked." - from Slashdot - 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/