diff options
Diffstat (limited to 'include/linux/sched.h')
-rw-r--r-- | include/linux/sched.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h index 2a99f1c15cf8..16a982e389fb 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h | |||
@@ -501,8 +501,11 @@ struct task_cputime { | |||
501 | /* | 501 | /* |
502 | * Disable preemption until the scheduler is running. | 502 | * Disable preemption until the scheduler is running. |
503 | * Reset by start_kernel()->sched_init()->init_idle(). | 503 | * Reset by start_kernel()->sched_init()->init_idle(). |
504 | * | ||
505 | * We include PREEMPT_ACTIVE to avoid cond_resched() from working | ||
506 | * before the scheduler is active -- see should_resched(). | ||
504 | */ | 507 | */ |
505 | #define INIT_PREEMPT_COUNT (1) | 508 | #define INIT_PREEMPT_COUNT (1 + PREEMPT_ACTIVE) |
506 | 509 | ||
507 | /** | 510 | /** |
508 | * struct thread_group_cputimer - thread group interval timer counts | 511 | * struct thread_group_cputimer - thread group interval timer counts |