From 1c432e7b45c48e646de7aca2aaa32a21b36091e9 Mon Sep 17 00:00:00 2001 From: Hauke Mehrtens Date: Mon, 12 Oct 2009 23:19:09 +0200 Subject: [PATCH] Export round_jiffies_up again. The 2.6.27 mainline kernel does not export round_jiffies_up. It looks like the openSuse kernel 2.6.27 does export this symbol. Rename the compat symbol to not conflict with the openSuse kernel. CC: larry.finger@gmail.com Signed-off-by: Hauke Mehrtens --- compat/compat-2.6.28.c | 2 -- compat/compat-2.6.28.h | 5 +++++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/compat/compat-2.6.28.c b/compat/compat-2.6.28.c index 613b0096a46b..33871a224b23 100644 --- a/compat/compat-2.6.28.c +++ b/compat/compat-2.6.28.c @@ -260,7 +260,6 @@ static unsigned long round_jiffies_common(unsigned long j, int cpu, return j; } -#if 0 /** * round_jiffies_up - function to round jiffies up to a full second * @j: the time in (absolute) jiffies that should be rounded @@ -275,6 +274,5 @@ unsigned long round_jiffies_up(unsigned long j) return round_jiffies_common(j, raw_smp_processor_id(), true); } EXPORT_SYMBOL_GPL(round_jiffies_up); -#endif #endif /* LINUX_VERSION_CODE < KERNEL_VERSION(2,6,28) */ diff --git a/compat/compat-2.6.28.h b/compat/compat-2.6.28.h index 4e5a2ef82ecd..90d080c80c87 100644 --- a/compat/compat-2.6.28.h +++ b/compat/compat-2.6.28.h @@ -195,6 +195,11 @@ static inline void tracepoint_update_probe_range(struct tracepoint *begin, #endif +/* openSuse includes round_jiffies_up in it's kernel 2.6.27. + * This is needed to prevent conflicts with the openSuse definition. + */ +#define round_jiffies_up backport_round_jiffies_up + unsigned long round_jiffies_up(unsigned long j); #endif /* (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,28)) */ -- 2.30.2