Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 76146
b: refs/heads/master
c: 84de427
h: refs/heads/master
v: v3
  • Loading branch information
Ingo Molnar committed Jan 25, 2008
1 parent d81b54c commit 71fba5c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: deeeccd41bd94a9db133d7b923f9a7479a47305d
refs/heads/master: 84de4274893691aa8c471a1f7336d51e555d23a0
9 changes: 9 additions & 0 deletions trunk/kernel/sched_rt.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,24 @@
*/

#ifdef CONFIG_SMP

/*
* The "RT overload" flag: it gets set if a CPU has more than
* one runnable RT task.
*/
static cpumask_t rt_overload_mask;
static atomic_t rto_count;

static inline int rt_overloaded(void)
{
return atomic_read(&rto_count);
}

static inline cpumask_t *rt_overload(void)
{
return &rt_overload_mask;
}

static inline void rt_set_overload(struct rq *rq)
{
rq->rt.overloaded = 1;
Expand All @@ -28,6 +36,7 @@ static inline void rt_set_overload(struct rq *rq)
wmb();
atomic_inc(&rto_count);
}

static inline void rt_clear_overload(struct rq *rq)
{
/* the order here really doesn't matter */
Expand Down

0 comments on commit 71fba5c

Please sign in to comment.