Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 110726
b: refs/heads/master
c: c8bfff6
h: refs/heads/master
v: v3
  • Loading branch information
Krzysztof Helt authored and Ingo Molnar committed Sep 6, 2008
1 parent 266b32a commit e433bc2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7940ca3605b77f20cc6e9852e4ca6f2d725b5653
refs/heads/master: c8bfff6dd4d41834f4952cbc49e28e31906a6188
10 changes: 4 additions & 6 deletions trunk/kernel/sched.c
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,10 @@ void init_rt_bandwidth(struct rt_bandwidth *rt_b, u64 period, u64 runtime)
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)
{
Expand Down Expand Up @@ -841,11 +844,6 @@ static inline u64 global_rt_runtime(void)
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
Expand Down

0 comments on commit e433bc2

Please sign in to comment.