Commit 70b97a7f authored by Ingo Molnar's avatar Ingo Molnar Committed by Linus Torvalds

[PATCH] sched: cleanup, convert sched.c-internal typedefs to struct

convert:

 - runqueue_t to 'struct rq'
 - prio_array_t to 'struct prio_array'
 - migration_req_t to 'struct migration_req'

I was the one who added these but they are both against the kernel coding
style and also were used inconsistently at places.  So just get rid of them at
once, now that we are flushing the scheduler patch-queue anyway.

Conversion was mostly scripted, the result was reviewed and all secondary
whitespace and style impact (if any) was fixed up by hand.
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 36c8b586
...@@ -534,7 +534,6 @@ extern struct user_struct *find_user(uid_t); ...@@ -534,7 +534,6 @@ extern struct user_struct *find_user(uid_t);
extern struct user_struct root_user; extern struct user_struct root_user;
#define INIT_USER (&root_user) #define INIT_USER (&root_user)
typedef struct prio_array prio_array_t;
struct backing_dev_info; struct backing_dev_info;
struct reclaim_state; struct reclaim_state;
...@@ -715,6 +714,8 @@ enum sleep_type { ...@@ -715,6 +714,8 @@ enum sleep_type {
SLEEP_INTERRUPTED, SLEEP_INTERRUPTED,
}; };
struct prio_array;
struct task_struct { struct task_struct {
volatile long state; /* -1 unrunnable, 0 runnable, >0 stopped */ volatile long state; /* -1 unrunnable, 0 runnable, >0 stopped */
struct thread_info *thread_info; struct thread_info *thread_info;
...@@ -732,7 +733,7 @@ struct task_struct { ...@@ -732,7 +733,7 @@ struct task_struct {
int load_weight; /* for niceness load balancing purposes */ int load_weight; /* for niceness load balancing purposes */
int prio, static_prio, normal_prio; int prio, static_prio, normal_prio;
struct list_head run_list; struct list_head run_list;
prio_array_t *array; struct prio_array *array;
unsigned short ioprio; unsigned short ioprio;
unsigned int btrace_seq; unsigned int btrace_seq;
......
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment