From patchwork Thu Jun 17 15:08:54 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Chiang X-Patchwork-Id: 106695 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o5HF95EN020376 for ; Thu, 17 Jun 2010 15:09:05 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932876Ab0FQPJE (ORCPT ); Thu, 17 Jun 2010 11:09:04 -0400 Received: from adelie.canonical.com ([91.189.90.139]:54122 "EHLO adelie.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932897Ab0FQPJD (ORCPT ); Thu, 17 Jun 2010 11:09:03 -0400 Received: from hutte.canonical.com ([91.189.90.181]) by adelie.canonical.com with esmtp (Exim 4.69 #1 (Debian)) id 1OPGiB-0003je-Eb; Thu, 17 Jun 2010 16:08:59 +0100 Received: from 174-16-118-64.hlrn.qwest.net ([174.16.118.64] helo=canonical.com) by hutte.canonical.com with esmtpsa (TLS-1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.69) (envelope-from ) id 1OPGiB-00009R-3c; Thu, 17 Jun 2010 16:08:59 +0100 Date: Thu, 17 Jun 2010 09:08:54 -0600 From: Alex Chiang To: lenb@kernel.org, Jan Pogadl Cc: gong.chen@linux.intel.com, linux-acpi@vger.kernel.org, linux-kernel Subject: [PATCH] ACPI: processor: fix processor_physically_present on UP Message-ID: <20100617150853.GF2138@canonical.com> Mail-Followup-To: Alex Chiang , lenb@kernel.org, Jan Pogadl , gong.chen@linux.intel.com, linux-acpi@vger.kernel.org, linux-kernel MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.20 (2009-06-14) Sender: linux-acpi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Thu, 17 Jun 2010 15:09:06 +0000 (UTC) diff --git a/drivers/acpi/processor_core.c b/drivers/acpi/processor_core.c index 5128435..e9699aa 100644 --- a/drivers/acpi/processor_core.c +++ b/drivers/acpi/processor_core.c @@ -223,7 +223,7 @@ static bool processor_physically_present(acpi_handle handle) type = (acpi_type == ACPI_TYPE_DEVICE) ? 1 : 0; cpuid = acpi_get_cpuid(handle, type, acpi_id); - if (cpuid == -1) + if ((cpuid == -1) && (num_possible_cpus() > 1)) return false; return true;