|
@@ -50,8 +50,6 @@ struct thread_info {
|
|
|
|
|
|
/*
|
|
/*
|
|
* macros/functions for gaining access to the thread information structure
|
|
* macros/functions for gaining access to the thread information structure
|
|
- *
|
|
|
|
- * preempt_count needs to be 1 initially, until the scheduler is functional.
|
|
|
|
*/
|
|
*/
|
|
#ifndef __ASSEMBLY__
|
|
#ifndef __ASSEMBLY__
|
|
#define INIT_THREAD_INFO(tsk) \
|
|
#define INIT_THREAD_INFO(tsk) \
|
|
@@ -60,7 +58,7 @@ struct thread_info {
|
|
.exec_domain = &default_exec_domain, \
|
|
.exec_domain = &default_exec_domain, \
|
|
.flags = 0, \
|
|
.flags = 0, \
|
|
.cpu = 0, \
|
|
.cpu = 0, \
|
|
- .preempt_count = 1, \
|
|
|
|
|
|
+ .preempt_count = INIT_PREEMPT_COUNT, \
|
|
.addr_limit = KERNEL_DS, \
|
|
.addr_limit = KERNEL_DS, \
|
|
.restart_block = { \
|
|
.restart_block = { \
|
|
.fn = do_no_restart_syscall, \
|
|
.fn = do_no_restart_syscall, \
|