sched: clean up kernel/sched_rt.c
clean up whitespace damage and missing comments in kernel/sched_rt.c. Signed-off-by: Ingo Molnar <mingo@elte.hu>
This commit is contained in:
parent
deeeccd41b
commit
84de427489
|
@ -4,16 +4,24 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef CONFIG_SMP
|
#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 cpumask_t rt_overload_mask;
|
||||||
static atomic_t rto_count;
|
static atomic_t rto_count;
|
||||||
|
|
||||||
static inline int rt_overloaded(void)
|
static inline int rt_overloaded(void)
|
||||||
{
|
{
|
||||||
return atomic_read(&rto_count);
|
return atomic_read(&rto_count);
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline cpumask_t *rt_overload(void)
|
static inline cpumask_t *rt_overload(void)
|
||||||
{
|
{
|
||||||
return &rt_overload_mask;
|
return &rt_overload_mask;
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline void rt_set_overload(struct rq *rq)
|
static inline void rt_set_overload(struct rq *rq)
|
||||||
{
|
{
|
||||||
rq->rt.overloaded = 1;
|
rq->rt.overloaded = 1;
|
||||||
|
@ -28,6 +36,7 @@ static inline void rt_set_overload(struct rq *rq)
|
||||||
wmb();
|
wmb();
|
||||||
atomic_inc(&rto_count);
|
atomic_inc(&rto_count);
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline void rt_clear_overload(struct rq *rq)
|
static inline void rt_clear_overload(struct rq *rq)
|
||||||
{
|
{
|
||||||
/* the order here really doesn't matter */
|
/* the order here really doesn't matter */
|
||||||
|
|
Loading…
Reference in New Issue