diff options
author | Alison Wang <b18965@freescale.com> | 2015-03-19 03:41:45 (GMT) |
---|---|---|
committer | Zhengxiong Jin <Jason.Jin@freescale.com> | 2015-03-19 06:18:40 (GMT) |
commit | 2bbe09ef71ce8446ba0b3e29df2099150e9e6fdf (patch) | |
tree | 6f0dbb222625af9225471cd8762eb176a13ae729 /include | |
parent | 45f784412aae66d9254685374721a3cad4a106b6 (diff) | |
download | linux-fsl-qoriq-2bbe09ef71ce8446ba0b3e29df2099150e9e6fdf.tar.xz |
clock: hrtimer: Add workaround to fix building error about hrtimer based broadcast on PowerPC
The hrtimer broad support was back-ported from upstream for LS1, the Power
platform do not implement this yet. The tick_setup_hrtimer_broadcast
function was not defined on Power platform.
When build for PowerPC with this backport support, such error occurs:
In file included from include/linux/tick.h:9:0,
from arch/powerpc/kernel/idle.c:27:
include/linux/clockchips.h:193:13: error: 'tick_setup_hrtimer_broadcast'
defined but not used [-Werror=unused-function]
As hrtimer based broadcast was only backported for ARM, this patch try to
provide a workaround to fix the build error on Power platform.
In linux-next, PowerPC will support hrtimer based broadcast too. There will
be no build error and no workaround needed.
Signed-off-by: Alison Wang <alison.wang@freescale.com>
Change-Id: If0f61062d6aa3d91ff81d074f20765a5880a5168
Reviewed-on: http://git.am.freescale.net:8181/33071
Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com>
Reviewed-by: Zhengxiong Jin <Jason.Jin@freescale.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/clockchips.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/clockchips.h b/include/linux/clockchips.h index 57e3c95..723a15f 100644 --- a/include/linux/clockchips.h +++ b/include/linux/clockchips.h @@ -186,12 +186,16 @@ extern int tick_receive_broadcast(void); #endif #if defined(CONFIG_GENERIC_CLOCKEVENTS_BROADCAST) && defined(CONFIG_TICK_ONESHOT) +#ifdef CONFIG_ARM extern void tick_setup_hrtimer_broadcast(void); +#endif extern int tick_check_broadcast_expired(void); #else static inline int tick_check_broadcast_expired(void) { return 0; } +#ifdef CONFIG_ARM static void tick_setup_hrtimer_broadcast(void) {}; #endif +#endif #ifdef CONFIG_GENERIC_CLOCKEVENTS extern int clockevents_notify(unsigned long reason, void *arg); |