From de6a07bdb80119866286202d66e872e1f414328b Mon Sep 17 00:00:00 2001 From: Claudio Mignanti Date: Sun, 7 Feb 2010 12:36:01 +0000 Subject: [PATCH] kernel: fix compilation for platforms without GENERIC_TIME git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19542 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- .../850-if_no_generic_time.patch | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 target/linux/generic-2.6/patches-2.6.32/850-if_no_generic_time.patch diff --git a/target/linux/generic-2.6/patches-2.6.32/850-if_no_generic_time.patch b/target/linux/generic-2.6/patches-2.6.32/850-if_no_generic_time.patch new file mode 100644 index 0000000000..752b03ba23 --- /dev/null +++ b/target/linux/generic-2.6/patches-2.6.32/850-if_no_generic_time.patch @@ -0,0 +1,25 @@ +Provide a dummy implementation of clocksource_max_deferment() for such +platforms. + +Signed-off-by: Aaro Koskinen iki.fi> +--- + kernel/time/clocksource.c | 5 +++++ + 1 files changed, 5 insertions(+), 0 deletions(-) + +diff --git a/kernel/time/clocksource.c b/kernel/time/clocksource.c +index 5155dc3..7b3a9d0 100644 +--- a/kernel/time/clocksource.c ++++ b/kernel/time/clocksource.c +@@ -502,6 +502,11 @@ static void clocksource_select(void) + + #else /* CONFIG_GENERIC_TIME */ + ++static inline u64 clocksource_max_deferment(struct clocksource *cs) ++{ ++ return 0; ++} ++ + static inline void clocksource_select(void) { } + + #endif +