summaryrefslogtreecommitdiff
path: root/target/linux
diff options
context:
space:
mode:
authorClaudio Mignanti <c.mignanti@gmail.com>2010-02-07 12:36:01 +0000
committerClaudio Mignanti <c.mignanti@gmail.com>2010-02-07 12:36:01 +0000
commit61e3a578d776d4e14aeda83de738d50d90c236df (patch)
tree35988c1c31e43119b51f306a264b1b1b1829510c /target/linux
parent69dfa151555b7e0e899de0b451bc38207104fb81 (diff)
downloadmtk-20170518-61e3a578d776d4e14aeda83de738d50d90c236df.zip
mtk-20170518-61e3a578d776d4e14aeda83de738d50d90c236df.tar.gz
mtk-20170518-61e3a578d776d4e14aeda83de738d50d90c236df.tar.bz2
kernel: fix compilation for platforms without GENERIC_TIME
SVN-Revision: 19542
Diffstat (limited to 'target/linux')
-rw-r--r--target/linux/generic-2.6/patches-2.6.32/850-if_no_generic_time.patch25
1 files changed, 25 insertions, 0 deletions
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 0000000..752b03b
--- /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 <aaro.koskinen <at> 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
+