lkml.org 
[lkml]   [2011]   [Mar]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 3/5] x86 idle: remove NOP halt_works()
Date
From: Len Brown <len.brown@intel.com>

no functional change

Signed-off-by: Len Brown <len.brown@intel.com>
---
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.1.343.ga91df


\
 
 \ /
  Last update: 2011-03-24 08:11    [from the cache]
©2003-2014 Jasper Spaans. Advertise on this site