kernel: fix compilation for platforms without GENERIC_TIME
[openwrt/openwrt.git] / target / linux / generic-2.6 / patches-2.6.32 / 850-if_no_generic_time.patch
1 Provide a dummy implementation of clocksource_max_deferment() for such
2 platforms.
3
4 Signed-off-by: Aaro Koskinen <aaro.koskinen <at> iki.fi>
5 ---
6 kernel/time/clocksource.c | 5 +++++
7 1 files changed, 5 insertions(+), 0 deletions(-)
8
9 diff --git a/kernel/time/clocksource.c b/kernel/time/clocksource.c
10 index 5155dc3..7b3a9d0 100644
11 --- a/kernel/time/clocksource.c
12 +++ b/kernel/time/clocksource.c
13 @@ -502,6 +502,11 @@ static void clocksource_select(void)
14
15 #else /* CONFIG_GENERIC_TIME */
16
17 +static inline u64 clocksource_max_deferment(struct clocksource *cs)
18 +{
19 + return 0;
20 +}
21 +
22 static inline void clocksource_select(void) { }
23
24 #endif
25