diff options
author | Ingo Molnar <mingo@elte.hu> | 2008-01-30 07:30:05 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-01-30 07:30:05 -0500 |
commit | 6e7c402590b75b6b45138792445ee0f0315a8473 (patch) | |
tree | 94db814d496502932ab55acc560a728925f87540 /include/asm-x86 | |
parent | b02aae9cf52956dfe1bec73f77f81a3d05d3902b (diff) |
x86: various changes and cleanups to in_p/out_p delay details
various changes to the in_p/out_p delay details:
- add the io_delay=none method
- make each method selectable from the kernel config
- simplify the delay code a bit by getting rid of an indirect function call
- add the /proc/sys/kernel/io_delay_type sysctl
- change 'io_delay=standard|alternate' to io_delay=0x80 and io_delay=0xed
- make the io delay config not depend on CONFIG_DEBUG_KERNEL
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Tested-by: "David P. Reed" <dpreed@reed.com>
Diffstat (limited to 'include/asm-x86')
-rw-r--r-- | include/asm-x86/io_32.h | 10 | ||||
-rw-r--r-- | include/asm-x86/io_64.h | 10 |
2 files changed, 6 insertions, 14 deletions
diff --git a/include/asm-x86/io_32.h b/include/asm-x86/io_32.h index a8d25c38b91c..2a04bd17eac5 100644 --- a/include/asm-x86/io_32.h +++ b/include/asm-x86/io_32.h | |||
@@ -250,15 +250,11 @@ static inline void flush_write_buffers(void) | |||
250 | 250 | ||
251 | #endif /* __KERNEL__ */ | 251 | #endif /* __KERNEL__ */ |
252 | 252 | ||
253 | #ifndef CONFIG_UDELAY_IO_DELAY | ||
254 | extern void io_delay_init(void); | ||
255 | #else | ||
256 | static inline void io_delay_init(void) | ||
257 | { | ||
258 | } | ||
259 | #endif | ||
260 | extern void native_io_delay(void); | 253 | extern void native_io_delay(void); |
261 | 254 | ||
255 | extern int io_delay_type; | ||
256 | extern void io_delay_init(void); | ||
257 | |||
262 | #if defined(CONFIG_PARAVIRT) | 258 | #if defined(CONFIG_PARAVIRT) |
263 | #include <asm/paravirt.h> | 259 | #include <asm/paravirt.h> |
264 | #else | 260 | #else |
diff --git a/include/asm-x86/io_64.h b/include/asm-x86/io_64.h index 5bebaf961692..dbcc03aa1c6a 100644 --- a/include/asm-x86/io_64.h +++ b/include/asm-x86/io_64.h | |||
@@ -35,15 +35,11 @@ | |||
35 | * - Arnaldo Carvalho de Melo <acme@conectiva.com.br> | 35 | * - Arnaldo Carvalho de Melo <acme@conectiva.com.br> |
36 | */ | 36 | */ |
37 | 37 | ||
38 | #ifndef CONFIG_UDELAY_IO_DELAY | ||
39 | extern void io_delay_init(void); | ||
40 | #else | ||
41 | static inline void io_delay_init(void) | ||
42 | { | ||
43 | } | ||
44 | #endif | ||
45 | extern void native_io_delay(void); | 38 | extern void native_io_delay(void); |
46 | 39 | ||
40 | extern int io_delay_type; | ||
41 | extern void io_delay_init(void); | ||
42 | |||
47 | static inline void slow_down_io(void) | 43 | static inline void slow_down_io(void) |
48 | { | 44 | { |
49 | native_io_delay(); | 45 | native_io_delay(); |