Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755840Ab1CaGDq (ORCPT ); Thu, 31 Mar 2011 02:03:46 -0400 Received: from vms173019pub.verizon.net ([206.46.173.19]:43984 "EHLO vms173019pub.verizon.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751019Ab1CaGDn (ORCPT ); Thu, 31 Mar 2011 02:03:43 -0400 From: Len Brown To: x86@kernel.org Cc: linux-kernel@vger.kernel.org, linux-pm@lists.linux-foundation.org, Len Brown Subject: [PATCH 3/9] x86 idle: remove NOP halt_works() Date: Thu, 31 Mar 2011 02:03:18 -0400 Message-id: <59c5d1540292b8c392d0a917e5f95da0297eef75.1301550524.git.len.brown@intel.com> X-Mailer: git-send-email 1.7.4.2.406.gbe91 In-reply-to: <1301551404-8263-1-git-send-email-lenb@kernel.org> References: <1300950508-22746-1-git-send-email-lenb@kernel.org> <1301551404-8263-1-git-send-email-lenb@kernel.org> In-reply-to: <67e90d97e0a77df4acd0c75e1bacc7714e011f3e.1301550524.git.len.brown@intel.com> References: <67e90d97e0a77df4acd0c75e1bacc7714e011f3e.1301550524.git.len.brown@intel.com> X-Patchwork-Hint: ignore Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1340 Lines: 48 From: Len Brown no functional change Signed-off-by: Len Brown --- arch/x86/include/asm/processor.h | 5 ----- arch/x86/kernel/process.c | 3 +-- 2 files changed, 1 insertions(+), 7 deletions(-) diff --git a/arch/x86/include/asm/processor.h b/arch/x86/include/asm/processor.h index b5c83f1..8776232 100644 --- a/arch/x86/include/asm/processor.h +++ b/arch/x86/include/asm/processor.h @@ -147,11 +147,6 @@ DECLARE_PER_CPU_SHARED_ALIGNED(struct cpuinfo_x86, cpu_info); extern const struct seq_operations cpuinfo_op; -static inline int hlt_works(int cpu) -{ - return 1; -} - #define cache_line_size() (boot_cpu_data.x86_cache_alignment) extern void cpu_detect(struct cpuinfo_x86 *c); diff --git a/arch/x86/kernel/process.c b/arch/x86/kernel/process.c index 4966c7e..cd461c3 100644 --- a/arch/x86/kernel/process.c +++ b/arch/x86/kernel/process.c @@ -414,8 +414,7 @@ void stop_this_cpu(void *dummy) disable_local_APIC(); for (;;) { - if (hlt_works(smp_processor_id())) - halt(); + halt(); } } -- 1.7.4.2.406.gbe91 -- 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/