rt_b->rt_period_timer.cb_mode = HRTIMER_CB_IRQSAFE_NO_SOFTIRQ;
}
-static inline int rt_bandwidth_enabled(void);
+static inline int rt_bandwidth_enabled(void)
+{
+ return sysctl_sched_rt_runtime >= 0;
+}
static void start_rt_bandwidth(struct rt_bandwidth *rt_b)
{
return (u64)sysctl_sched_rt_runtime * NSEC_PER_USEC;
}
-static inline int rt_bandwidth_enabled(void)
-{
- return sysctl_sched_rt_runtime >= 0;
-}
-
#ifndef prepare_arch_switch
# define prepare_arch_switch(next) do { } while (0)
#endif