public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] x86, hpet: Make boot_hpet_disable extern
@ 2014-04-24  8:18 Feng Tang
  2014-04-24  8:18 ` [PATCH 2/2] x86: Add quirk to disable HPET for baytrail platform Feng Tang
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Feng Tang @ 2014-04-24  8:18 UTC (permalink / raw)
  To: Ingo Molnar, Thomas Gleixner, H. Peter Anvin, linux-kernel
  Cc: Clemens Ladisch, John Stultz, Feng Tang

HPET on some platform has accuracy problem. Making
"boot_hpet_disable" extern so that we can runtime disable
the HPET timer by using quirk to check the platform.

Signed-off-by: Feng Tang <feng.tang@intel.com>
---
 arch/x86/include/asm/hpet.h |    1 +
 arch/x86/kernel/hpet.c      |    2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/arch/x86/include/asm/hpet.h b/arch/x86/include/asm/hpet.h
index b18df57..36f7125 100644
--- a/arch/x86/include/asm/hpet.h
+++ b/arch/x86/include/asm/hpet.h
@@ -63,6 +63,7 @@
 /* hpet memory map physical address */
 extern unsigned long hpet_address;
 extern unsigned long force_hpet_address;
+extern int boot_hpet_disable;
 extern u8 hpet_blockid;
 extern int hpet_force_user;
 extern u8 hpet_msi_disable;
diff --git a/arch/x86/kernel/hpet.c b/arch/x86/kernel/hpet.c
index 8d80ae0..4177bfb 100644
--- a/arch/x86/kernel/hpet.c
+++ b/arch/x86/kernel/hpet.c
@@ -88,7 +88,7 @@ static inline void hpet_clear_mapping(void)
 /*
  * HPET command line enable / disable
  */
-static int boot_hpet_disable;
+int boot_hpet_disable;
 int hpet_force_user;
 static int hpet_verbose;
 
-- 
1.7.9.5


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2014-05-08 10:46 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-24  8:18 [PATCH 1/2] x86, hpet: Make boot_hpet_disable extern Feng Tang
2014-04-24  8:18 ` [PATCH 2/2] x86: Add quirk to disable HPET for baytrail platform Feng Tang
2014-05-08 10:45   ` [tip:x86/urgent] x86/intel: Add quirk to disable HPET for the Baytrail platform tip-bot for Feng Tang
2014-05-08  6:28 ` [PATCH 1/2] x86, hpet: Make boot_hpet_disable extern Feng Tang
2014-05-08  6:32   ` Ingo Molnar
2014-05-08 10:45 ` [tip:x86/urgent] x86/hpet: " tip-bot for Feng Tang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox