|
@@ -36,6 +36,7 @@ extern void tick_shutdown_broadcast_oneshot(unsigned int *cpup);
|
|
extern int tick_resume_broadcast_oneshot(struct clock_event_device *bc);
|
|
extern int tick_resume_broadcast_oneshot(struct clock_event_device *bc);
|
|
extern int tick_broadcast_oneshot_active(void);
|
|
extern int tick_broadcast_oneshot_active(void);
|
|
extern void tick_check_oneshot_broadcast(int cpu);
|
|
extern void tick_check_oneshot_broadcast(int cpu);
|
|
|
|
+bool tick_broadcast_oneshot_available(void);
|
|
# else /* BROADCAST */
|
|
# else /* BROADCAST */
|
|
static inline void tick_broadcast_setup_oneshot(struct clock_event_device *bc)
|
|
static inline void tick_broadcast_setup_oneshot(struct clock_event_device *bc)
|
|
{
|
|
{
|
|
@@ -46,6 +47,7 @@ static inline void tick_broadcast_switch_to_oneshot(void) { }
|
|
static inline void tick_shutdown_broadcast_oneshot(unsigned int *cpup) { }
|
|
static inline void tick_shutdown_broadcast_oneshot(unsigned int *cpup) { }
|
|
static inline int tick_broadcast_oneshot_active(void) { return 0; }
|
|
static inline int tick_broadcast_oneshot_active(void) { return 0; }
|
|
static inline void tick_check_oneshot_broadcast(int cpu) { }
|
|
static inline void tick_check_oneshot_broadcast(int cpu) { }
|
|
|
|
+static inline bool tick_broadcast_oneshot_available(void) { return true; }
|
|
# endif /* !BROADCAST */
|
|
# endif /* !BROADCAST */
|
|
|
|
|
|
#else /* !ONESHOT */
|
|
#else /* !ONESHOT */
|
|
@@ -76,6 +78,7 @@ static inline int tick_resume_broadcast_oneshot(struct clock_event_device *bc)
|
|
return 0;
|
|
return 0;
|
|
}
|
|
}
|
|
static inline int tick_broadcast_oneshot_active(void) { return 0; }
|
|
static inline int tick_broadcast_oneshot_active(void) { return 0; }
|
|
|
|
+static inline bool tick_broadcast_oneshot_available(void) { return false; }
|
|
#endif /* !TICK_ONESHOT */
|
|
#endif /* !TICK_ONESHOT */
|
|
|
|
|
|
/*
|
|
/*
|