aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2011-07-21 16:34:05 -0400
committerH. Peter Anvin <hpa@zytor.com>2011-07-21 16:34:05 -0400
commitae7bd11b471931752e5609094ca0a49386590524 (patch)
tree4c5ac21a847c6eb25259c63e11b2d8dc9f4defac /include
parent8c400f6ce068366bc3517f1036bb99169cfec9cd (diff)
clocksource: Change __ARCH_HAS_CLOCKSOURCE_DATA to a CONFIG option
The machinery for __ARCH_HAS_CLOCKSOURCE_DATA assumed a file in asm-generic would be the default for architectures without their own file in asm/, but that is not how it works. Replace it with a Kconfig option instead. Link: http://lkml.kernel.org/r/4E288AA6.7090804@zytor.com Signed-off-by: H. Peter Anvin <hpa@zytor.com> Cc: Andy Lutomirski <luto@mit.edu> Cc: Arnd Bergmann <arnd@arndb.de> Cc: Tony Luck <tony.luck@intel.com>
Diffstat (limited to 'include')
-rw-r--r--include/asm-generic/clocksource.h4
-rw-r--r--include/linux/clocksource.h4
2 files changed, 3 insertions, 5 deletions
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 @@
22typedef u64 cycle_t; 22typedef u64 cycle_t;
23struct clocksource; 23struct 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