voron

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

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

sched: rename curr_task to current

Diffstat:
include/sched.h | 11+----------
kernel/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);