voron

experimental ARM OS
git clone git://git.2f30.org/voron
Log | Files | Refs | README | LICENSE

commit 6e02b78afe88a83d1e147dd290b7a234561ff2bc
parent 7dbbbfdd051d82b8eeba896d7e42af5007a7d0d4
Author: oblique <psyberbits@gmail.com>
Date:   Tue, 14 May 2013 22:34:22 +0300

sched: rename curr_task to current

Diffstat:
Minclude/sched.h | 11+----------
Mkernel/sched.c | 2+-
2 files changed, 2 insertions(+), 11 deletions(-)

diff --git a/include/sched.h b/include/sched.h @@ -34,16 +34,7 @@ struct task_struct { u32 wakeup_ms; }; - -extern struct task_struct *curr_task; - -static inline struct task_struct ** -current_task(void) -{ - return &curr_task; -} - -#define current (*current_task()) +extern struct task_struct *current; void sleep(u32 seconds); void msleep(u32 milliseconds); diff --git a/kernel/sched.c b/kernel/sched.c @@ -8,7 +8,7 @@ #define MAX_HASH_ENT 64 -struct task_struct *curr_task = NULL; +struct task_struct *current = NULL; static struct list_head task_list_head; static struct list_head ht_sleep[MAX_HASH_ENT]; static uatomic_t ms_counter = UATOMIC_INIT(0);