diff options
| -rw-r--r-- | kernel/sched.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/kernel/sched.c b/kernel/sched.c index 703f56d5db5f..4de2bfb28c58 100644 --- a/kernel/sched.c +++ b/kernel/sched.c | |||
| @@ -204,7 +204,10 @@ void init_rt_bandwidth(struct rt_bandwidth *rt_b, u64 period, u64 runtime) | |||
| 204 | rt_b->rt_period_timer.cb_mode = HRTIMER_CB_IRQSAFE_NO_SOFTIRQ; | 204 | rt_b->rt_period_timer.cb_mode = HRTIMER_CB_IRQSAFE_NO_SOFTIRQ; |
| 205 | } | 205 | } |
| 206 | 206 | ||
| 207 | static inline int rt_bandwidth_enabled(void); | 207 | static inline int rt_bandwidth_enabled(void) |
| 208 | { | ||
| 209 | return sysctl_sched_rt_runtime >= 0; | ||
| 210 | } | ||
| 208 | 211 | ||
| 209 | static void start_rt_bandwidth(struct rt_bandwidth *rt_b) | 212 | static void start_rt_bandwidth(struct rt_bandwidth *rt_b) |
| 210 | { | 213 | { |
| @@ -841,11 +844,6 @@ static inline u64 global_rt_runtime(void) | |||
| 841 | return (u64)sysctl_sched_rt_runtime * NSEC_PER_USEC; | 844 | return (u64)sysctl_sched_rt_runtime * NSEC_PER_USEC; |
| 842 | } | 845 | } |
| 843 | 846 | ||
| 844 | static inline int rt_bandwidth_enabled(void) | ||
| 845 | { | ||
| 846 | return sysctl_sched_rt_runtime >= 0; | ||
| 847 | } | ||
| 848 | |||
| 849 | #ifndef prepare_arch_switch | 847 | #ifndef prepare_arch_switch |
| 850 | # define prepare_arch_switch(next) do { } while (0) | 848 | # define prepare_arch_switch(next) do { } while (0) |
| 851 | #endif | 849 | #endif |
