diff options
-rw-r--r-- | arch/ia64/Kconfig | 3 | ||||
-rw-r--r-- | arch/ia64/include/asm/clocksource.h | 2 | ||||
-rw-r--r-- | arch/x86/Kconfig | 4 | ||||
-rw-r--r-- | arch/x86/include/asm/clocksource.h | 2 | ||||
-rw-r--r-- | include/asm-generic/clocksource.h | 4 | ||||
-rw-r--r-- | include/linux/clocksource.h | 4 |
6 files changed, 10 insertions, 9 deletions
diff --git a/arch/ia64/Kconfig b/arch/ia64/Kconfig index 38280ef4a2af..0a9820a77825 100644 --- a/arch/ia64/Kconfig +++ b/arch/ia64/Kconfig | |||
@@ -101,6 +101,9 @@ config GENERIC_IOMAP | |||
101 | bool | 101 | bool |
102 | default y | 102 | default y |
103 | 103 | ||
104 | config ARCH_CLOCKSOURCE_DATA | ||
105 | def_bool y | ||
106 | |||
104 | config SCHED_OMIT_FRAME_POINTER | 107 | config SCHED_OMIT_FRAME_POINTER |
105 | bool | 108 | bool |
106 | default y | 109 | default y |
diff --git a/arch/ia64/include/asm/clocksource.h b/arch/ia64/include/asm/clocksource.h index 00eb549a59b0..5c8596e4cb02 100644 --- a/arch/ia64/include/asm/clocksource.h +++ b/arch/ia64/include/asm/clocksource.h | |||
@@ -3,8 +3,6 @@ | |||
3 | #ifndef _ASM_IA64_CLOCKSOURCE_H | 3 | #ifndef _ASM_IA64_CLOCKSOURCE_H |
4 | #define _ASM_IA64_CLOCKSOURCE_H | 4 | #define _ASM_IA64_CLOCKSOURCE_H |
5 | 5 | ||
6 | #define __ARCH_HAS_CLOCKSOURCE_DATA | ||
7 | |||
8 | struct arch_clocksource_data { | 6 | struct arch_clocksource_data { |
9 | void *fsys_mmio; /* used by fsyscall asm code */ | 7 | void *fsys_mmio; /* used by fsyscall asm code */ |
10 | }; | 8 | }; |
diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig index da349723d411..c1e41bccdcb8 100644 --- a/arch/x86/Kconfig +++ b/arch/x86/Kconfig | |||
@@ -93,6 +93,10 @@ config CLOCKSOURCE_WATCHDOG | |||
93 | config GENERIC_CLOCKEVENTS | 93 | config GENERIC_CLOCKEVENTS |
94 | def_bool y | 94 | def_bool y |
95 | 95 | ||
96 | config ARCH_CLOCKSOURCE_DATA | ||
97 | def_bool y | ||
98 | depends on X86_64 | ||
99 | |||
96 | config GENERIC_CLOCKEVENTS_BROADCAST | 100 | config GENERIC_CLOCKEVENTS_BROADCAST |
97 | def_bool y | 101 | def_bool y |
98 | depends on X86_64 || (X86_32 && X86_LOCAL_APIC) | 102 | depends on X86_64 || (X86_32 && X86_LOCAL_APIC) |
diff --git a/arch/x86/include/asm/clocksource.h b/arch/x86/include/asm/clocksource.h index 3882c65dc19b..0bdbbb3b9ce7 100644 --- a/arch/x86/include/asm/clocksource.h +++ b/arch/x86/include/asm/clocksource.h | |||
@@ -5,8 +5,6 @@ | |||
5 | 5 | ||
6 | #ifdef CONFIG_X86_64 | 6 | #ifdef CONFIG_X86_64 |
7 | 7 | ||
8 | #define __ARCH_HAS_CLOCKSOURCE_DATA | ||
9 | |||
10 | #define VCLOCK_NONE 0 /* No vDSO clock available. */ | 8 | #define VCLOCK_NONE 0 /* No vDSO clock available. */ |
11 | #define VCLOCK_TSC 1 /* vDSO should use vread_tsc. */ | 9 | #define VCLOCK_TSC 1 /* vDSO should use vread_tsc. */ |
12 | #define VCLOCK_HPET 2 /* vDSO should use vread_hpet. */ | 10 | #define VCLOCK_HPET 2 /* vDSO should use vread_hpet. */ |
diff --git a/include/asm-generic/clocksource.h b/include/asm-generic/clocksource.h deleted file mode 100644 index 0a462d3fb05e..000000000000 --- a/include/asm-generic/clocksource.h +++ /dev/null | |||
@@ -1,4 +0,0 @@ | |||
1 | /* | ||
2 | * Architectures should override this file to add private userspace | ||
3 | * clock magic if needed. | ||
4 | */ | ||
diff --git a/include/linux/clocksource.h b/include/linux/clocksource.h index 6bb69702c4fa..59ee970cf89e 100644 --- a/include/linux/clocksource.h +++ b/include/linux/clocksource.h | |||
@@ -22,7 +22,9 @@ | |||
22 | typedef u64 cycle_t; | 22 | typedef u64 cycle_t; |
23 | struct clocksource; | 23 | struct clocksource; |
24 | 24 | ||
25 | #ifdef CONFIG_ARCH_CLOCKSOURCE_DATA | ||
25 | #include <asm/clocksource.h> | 26 | #include <asm/clocksource.h> |
27 | #endif | ||
26 | 28 | ||
27 | /** | 29 | /** |
28 | * struct cyclecounter - hardware abstraction for a free running counter | 30 | * struct cyclecounter - hardware abstraction for a free running counter |
@@ -171,7 +173,7 @@ struct clocksource { | |||
171 | u32 shift; | 173 | u32 shift; |
172 | u64 max_idle_ns; | 174 | u64 max_idle_ns; |
173 | 175 | ||
174 | #ifdef __ARCH_HAS_CLOCKSOURCE_DATA | 176 | #ifdef CONFIG_ARCH_CLOCKSOURCE_DATA |
175 | struct arch_clocksource_data archdata; | 177 | struct arch_clocksource_data archdata; |
176 | #endif | 178 | #endif |
177 | 179 | ||