Remove assumptions in MI code that the BSP is CPU 0.

MFC after:	2 weeks
This commit is contained in:
Nathan Whitehorn 2016-07-11 21:25:28 +00:00
parent 1ef4039ac7
commit 8c636a11dc
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=302595
2 changed files with 1 additions and 3 deletions

View File

@ -495,7 +495,7 @@ proc0_init(void *dummy __unused)
td->td_lend_user_pri = PRI_MAX;
td->td_priority = PVM;
td->td_base_pri = PVM;
td->td_oncpu = 0;
td->td_oncpu = curcpu;
td->td_flags = TDF_INMEM;
td->td_pflags = TDP_KTHREAD;
td->td_cpuset = cpuset_thread0();

View File

@ -1273,8 +1273,6 @@ netisr_init(void *arg)
struct pcpu *pc;
#endif
KASSERT(curcpu == 0, ("%s: not on CPU 0", __func__));
NETISR_LOCK_INIT();
if (netisr_maxthreads == 0 || netisr_maxthreads < -1 )
netisr_maxthreads = 1; /* default behavior */