diff options
Diffstat (limited to 'kernel/sched_idletask.c')
-rw-r--r-- | kernel/sched_idletask.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/kernel/sched_idletask.c b/kernel/sched_idletask.c index 3503fb2d9f96..6e2ead41516e 100644 --- a/kernel/sched_idletask.c +++ b/kernel/sched_idletask.c | |||
@@ -50,10 +50,15 @@ static void task_tick_idle(struct rq *rq, struct task_struct *curr) | |||
50 | { | 50 | { |
51 | } | 51 | } |
52 | 52 | ||
53 | static void set_curr_task_idle(struct rq *rq) | ||
54 | { | ||
55 | } | ||
56 | |||
53 | /* | 57 | /* |
54 | * Simple, special scheduling class for the per-CPU idle tasks: | 58 | * Simple, special scheduling class for the per-CPU idle tasks: |
55 | */ | 59 | */ |
56 | static struct sched_class idle_sched_class __read_mostly = { | 60 | const struct sched_class idle_sched_class = { |
61 | /* .next is NULL */ | ||
57 | /* no enqueue/yield_task for idle tasks */ | 62 | /* no enqueue/yield_task for idle tasks */ |
58 | 63 | ||
59 | /* dequeue is not valid, we print a debug message there: */ | 64 | /* dequeue is not valid, we print a debug message there: */ |
@@ -66,6 +71,7 @@ static struct sched_class idle_sched_class __read_mostly = { | |||
66 | 71 | ||
67 | .load_balance = load_balance_idle, | 72 | .load_balance = load_balance_idle, |
68 | 73 | ||
74 | .set_curr_task = set_curr_task_idle, | ||
69 | .task_tick = task_tick_idle, | 75 | .task_tick = task_tick_idle, |
70 | /* no .task_new for idle tasks */ | 76 | /* no .task_new for idle tasks */ |
71 | }; | 77 | }; |