aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Documentation/kernel-parameters.txt6
-rw-r--r--arch/x86/kernel/hpet.c3
-rw-r--r--include/asm-x86/hpet.h1
3 files changed, 8 insertions, 2 deletions
diff --git a/Documentation/kernel-parameters.txt b/Documentation/kernel-parameters.txt
index 189df0bcab99..c6859b94aaa7 100644
--- a/Documentation/kernel-parameters.txt
+++ b/Documentation/kernel-parameters.txt
@@ -431,8 +431,10 @@ and is between 256 and 4096 characters. It is defined in the file
431 over the 8254 in addition to over the IO-APIC. The 431 over the 8254 in addition to over the IO-APIC. The
432 kernel tries to set a sensible default. 432 kernel tries to set a sensible default.
433 433
434 hpet= [X86-32,HPET] option to disable HPET and use PIT. 434 hpet= [X86-32,HPET] option to control HPET usage
435 Format: disable 435 Format: { enable (default) | disable | force }
436 disable: disable HPET and use PIT instead
437 force: allow force enabled of undocumented chips (ICH4, VIA)
436 438
437 com20020= [HW,NET] ARCnet - COM20020 chipset 439 com20020= [HW,NET] ARCnet - COM20020 chipset
438 Format: 440 Format:
diff --git a/arch/x86/kernel/hpet.c b/arch/x86/kernel/hpet.c
index f8367074da0d..22d8f00c80dc 100644
--- a/arch/x86/kernel/hpet.c
+++ b/arch/x86/kernel/hpet.c
@@ -69,12 +69,15 @@ static inline void hpet_clear_mapping(void)
69 * HPET command line enable / disable 69 * HPET command line enable / disable
70 */ 70 */
71static int boot_hpet_disable; 71static int boot_hpet_disable;
72int hpet_force_user;
72 73
73static int __init hpet_setup(char* str) 74static int __init hpet_setup(char* str)
74{ 75{
75 if (str) { 76 if (str) {
76 if (!strncmp("disable", str, 7)) 77 if (!strncmp("disable", str, 7))
77 boot_hpet_disable = 1; 78 boot_hpet_disable = 1;
79 if (!strncmp("force", str, 5))
80 hpet_force_user = 1;
78 } 81 }
79 return 1; 82 return 1;
80} 83}
diff --git a/include/asm-x86/hpet.h b/include/asm-x86/hpet.h
index d4ab6db050b6..4f51519fc199 100644
--- a/include/asm-x86/hpet.h
+++ b/include/asm-x86/hpet.h
@@ -64,6 +64,7 @@
64/* hpet memory map physical address */ 64/* hpet memory map physical address */
65extern unsigned long hpet_address; 65extern unsigned long hpet_address;
66extern unsigned long force_hpet_address; 66extern unsigned long force_hpet_address;
67extern int hpet_force_user;
67extern int is_hpet_enabled(void); 68extern int is_hpet_enabled(void);
68extern int hpet_enable(void); 69extern int hpet_enable(void);
69extern unsigned long hpet_readl(unsigned long a); 70extern unsigned long hpet_readl(unsigned long a);