Skip to content

Commit

Permalink
sched: cleanup, make struct rq comments more consistent
Browse files Browse the repository at this point in the history
cleanup, make struct rq comments more consistent.

found via scripts/checkpatch.pl.

Signed-off-by: Ingo Molnar <mingo@elte.hu>
  • Loading branch information
Ingo Molnar committed Oct 18, 2007
1 parent 8401f77 commit d801649
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions kernel/sched.c
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,8 @@ struct rt_rq {
* acquire operations must be ordered by ascending &runqueue.
*/
struct rq {
spinlock_t lock; /* runqueue lock */
/* runqueue lock: */
spinlock_t lock;

/*
* nr_running and cpu_load should be in the same cacheline because
Expand All @@ -279,13 +280,15 @@ struct rq {
#ifdef CONFIG_NO_HZ
unsigned char in_nohz_recently;
#endif
struct load_weight load; /* capture load from *all* tasks on this cpu */
/* capture load from *all* tasks on this cpu: */
struct load_weight load;
unsigned long nr_load_updates;
u64 nr_switches;

struct cfs_rq cfs;
#ifdef CONFIG_FAIR_GROUP_SCHED
struct list_head leaf_cfs_rq_list; /* list of leaf cfs_rq on this cpu */
/* list of leaf cfs_rq on this cpu: */
struct list_head leaf_cfs_rq_list;
#endif
struct rt_rq rt;

Expand Down Expand Up @@ -317,7 +320,8 @@ struct rq {
/* For active balancing */
int active_balance;
int push_cpu;
int cpu; /* cpu of this runqueue */
/* cpu of this runqueue: */
int cpu;

struct task_struct *migration_thread;
struct list_head migration_queue;
Expand Down

0 comments on commit d801649

Please sign in to comment.