Skip to content

Commit

Permalink
[PATCH] sched: cleanup, convert sched.c-internal typedefs to struct
Browse files Browse the repository at this point in the history
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: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Ingo Molnar authored and Linus Torvalds committed Jul 3, 2006
1 parent 36c8b58 commit 70b97a7
Show file tree
Hide file tree
Showing 2 changed files with 128 additions and 127 deletions.
5 changes: 3 additions & 2 deletions include/linux/sched.h
Original file line number Diff line number Diff line change
Expand Up @@ -534,7 +534,6 @@ extern struct user_struct *find_user(uid_t);
extern struct user_struct root_user;
#define INIT_USER (&root_user)

typedef struct prio_array prio_array_t;
struct backing_dev_info;
struct reclaim_state;

Expand Down Expand Up @@ -715,6 +714,8 @@ enum sleep_type {
SLEEP_INTERRUPTED,
};

struct prio_array;

struct task_struct {
volatile long state; /* -1 unrunnable, 0 runnable, >0 stopped */
struct thread_info *thread_info;
Expand All @@ -732,7 +733,7 @@ struct task_struct {
int load_weight; /* for niceness load balancing purposes */
int prio, static_prio, normal_prio;
struct list_head run_list;
prio_array_t *array;
struct prio_array *array;

unsigned short ioprio;
unsigned int btrace_seq;
Expand Down
Loading

0 comments on commit 70b97a7

Please sign in to comment.