diff options
author | Stephen Warren <swarren@wwwdotorg.org> | 2013-01-14 23:44:27 -0500 |
---|---|---|
committer | Stephen Warren <swarren@wwwdotorg.org> | 2013-01-14 23:44:27 -0500 |
commit | b2fc382aad0a8f52803acdc3ac4e5540dbcdf1f6 (patch) | |
tree | ed79658afd978b1e52ace0fb58d1628b79c0f78b /include | |
parent | 9931faca02c604c22335f5a935a501bb2ace6e20 (diff) | |
parent | 90cf214d6a549bf482e3c5751ee256cc885b96ea (diff) |
Merge remote-tracking branch 'korg_arm-soc/timer/cleanup' into cleanup
Diffstat (limited to 'include')
-rw-r--r-- | include/asm-generic/vmlinux.lds.h | 9 | ||||
-rw-r--r-- | include/linux/bcm2835_timer.h | 2 | ||||
-rw-r--r-- | include/linux/clocksource.h | 9 | ||||
-rw-r--r-- | include/linux/dw_apb_timer.h | 2 | ||||
-rw-r--r-- | include/linux/sunxi_timer.h | 2 | ||||
-rw-r--r-- | include/linux/time.h | 4 |
6 files changed, 22 insertions, 6 deletions
diff --git a/include/asm-generic/vmlinux.lds.h b/include/asm-generic/vmlinux.lds.h index d1ea7ce0b4cb..1e744c5a0ffe 100644 --- a/include/asm-generic/vmlinux.lds.h +++ b/include/asm-generic/vmlinux.lds.h | |||
@@ -149,6 +149,14 @@ | |||
149 | #define TRACE_SYSCALLS() | 149 | #define TRACE_SYSCALLS() |
150 | #endif | 150 | #endif |
151 | 151 | ||
152 | #ifdef CONFIG_CLKSRC_OF | ||
153 | #define CLKSRC_OF_TABLES() . = ALIGN(8); \ | ||
154 | VMLINUX_SYMBOL(__clksrc_of_table) = .; \ | ||
155 | *(__clksrc_of_table) \ | ||
156 | *(__clksrc_of_table_end) | ||
157 | #else | ||
158 | #define CLKSRC_OF_TABLES() | ||
159 | #endif | ||
152 | 160 | ||
153 | #define KERNEL_DTB() \ | 161 | #define KERNEL_DTB() \ |
154 | STRUCT_ALIGN(); \ | 162 | STRUCT_ALIGN(); \ |
@@ -493,6 +501,7 @@ | |||
493 | DEV_DISCARD(init.rodata) \ | 501 | DEV_DISCARD(init.rodata) \ |
494 | CPU_DISCARD(init.rodata) \ | 502 | CPU_DISCARD(init.rodata) \ |
495 | MEM_DISCARD(init.rodata) \ | 503 | MEM_DISCARD(init.rodata) \ |
504 | CLKSRC_OF_TABLES() \ | ||
496 | KERNEL_DTB() | 505 | KERNEL_DTB() |
497 | 506 | ||
498 | #define INIT_TEXT \ | 507 | #define INIT_TEXT \ |
diff --git a/include/linux/bcm2835_timer.h b/include/linux/bcm2835_timer.h index 25680fe0903c..ca17aa817006 100644 --- a/include/linux/bcm2835_timer.h +++ b/include/linux/bcm2835_timer.h | |||
@@ -17,6 +17,6 @@ | |||
17 | 17 | ||
18 | #include <asm/mach/time.h> | 18 | #include <asm/mach/time.h> |
19 | 19 | ||
20 | extern struct sys_timer bcm2835_timer; | 20 | extern void bcm2835_timer_init(void); |
21 | 21 | ||
22 | #endif | 22 | #endif |
diff --git a/include/linux/clocksource.h b/include/linux/clocksource.h index 4dceaf8ae152..7944f14ea947 100644 --- a/include/linux/clocksource.h +++ b/include/linux/clocksource.h | |||
@@ -332,4 +332,13 @@ extern int clocksource_mmio_init(void __iomem *, const char *, | |||
332 | 332 | ||
333 | extern int clocksource_i8253_init(void); | 333 | extern int clocksource_i8253_init(void); |
334 | 334 | ||
335 | #ifdef CONFIG_CLKSRC_OF | ||
336 | extern void clocksource_of_init(void); | ||
337 | |||
338 | #define CLOCKSOURCE_OF_DECLARE(name, compat, fn) \ | ||
339 | static const struct of_device_id __clksrc_of_table_##name \ | ||
340 | __used __section(__clksrc_of_table) \ | ||
341 | = { .compatible = compat, .data = fn }; | ||
342 | #endif | ||
343 | |||
335 | #endif /* _LINUX_CLOCKSOURCE_H */ | 344 | #endif /* _LINUX_CLOCKSOURCE_H */ |
diff --git a/include/linux/dw_apb_timer.h b/include/linux/dw_apb_timer.h index 1148575fd134..dd755ce2a5eb 100644 --- a/include/linux/dw_apb_timer.h +++ b/include/linux/dw_apb_timer.h | |||
@@ -53,5 +53,5 @@ void dw_apb_clocksource_start(struct dw_apb_clocksource *dw_cs); | |||
53 | cycle_t dw_apb_clocksource_read(struct dw_apb_clocksource *dw_cs); | 53 | cycle_t dw_apb_clocksource_read(struct dw_apb_clocksource *dw_cs); |
54 | void dw_apb_clocksource_unregister(struct dw_apb_clocksource *dw_cs); | 54 | void dw_apb_clocksource_unregister(struct dw_apb_clocksource *dw_cs); |
55 | 55 | ||
56 | extern struct sys_timer dw_apb_timer; | 56 | extern void dw_apb_timer_init(void); |
57 | #endif /* __DW_APB_TIMER_H__ */ | 57 | #endif /* __DW_APB_TIMER_H__ */ |
diff --git a/include/linux/sunxi_timer.h b/include/linux/sunxi_timer.h index b9165bba6e61..18081787e5f3 100644 --- a/include/linux/sunxi_timer.h +++ b/include/linux/sunxi_timer.h | |||
@@ -19,6 +19,6 @@ | |||
19 | 19 | ||
20 | #include <asm/mach/time.h> | 20 | #include <asm/mach/time.h> |
21 | 21 | ||
22 | extern struct sys_timer sunxi_timer; | 22 | void sunxi_timer_init(void); |
23 | 23 | ||
24 | #endif | 24 | #endif |
diff --git a/include/linux/time.h b/include/linux/time.h index 4d358e9d10f1..05e32a72103c 100644 --- a/include/linux/time.h +++ b/include/linux/time.h | |||
@@ -142,9 +142,7 @@ void timekeeping_inject_sleeptime(struct timespec *delta); | |||
142 | * finer then tick granular time. | 142 | * finer then tick granular time. |
143 | */ | 143 | */ |
144 | #ifdef CONFIG_ARCH_USES_GETTIMEOFFSET | 144 | #ifdef CONFIG_ARCH_USES_GETTIMEOFFSET |
145 | extern u32 arch_gettimeoffset(void); | 145 | extern u32 (*arch_gettimeoffset)(void); |
146 | #else | ||
147 | static inline u32 arch_gettimeoffset(void) { return 0; } | ||
148 | #endif | 146 | #endif |
149 | 147 | ||
150 | extern void do_gettimeofday(struct timeval *tv); | 148 | extern void do_gettimeofday(struct timeval *tv); |