diff options
author | Brian Swetland <swetland@frotz.net> | 2016-01-16 17:32:57 -0800 |
---|---|---|
committer | Brian Swetland <swetland@frotz.net> | 2016-01-17 18:46:51 -0800 |
commit | 1de5270d6e57109a3c6423fcd5b43e6e8fd71692 (patch) | |
tree | 909f4caeeddb5661f07257ec5a41fb33cf62a866 /top | |
parent | a619f2e9cdbcd170ca19fc06c99a08a611f90828 (diff) | |
download | lk-1de5270d6e57109a3c6423fcd5b43e6e8fd71692.tar.gz |
[kernel][smp] reduce impact of SMP code on UP builds
Hopefully to nothing...
- remove current/pinned cpu tracking in thread struct
- macroize access to current/pinned cpu tracking
- empty-inline/remove vestigial mp_* bits in UP builds
Diffstat (limited to 'top')
-rw-r--r-- | top/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -121,7 +121,7 @@ void lk_main(ulong arg0, ulong arg1, ulong arg2, ulong arg3) // create a thread to complete system initialization dprintf(SPEW, "creating bootstrap completion thread\n"); thread_t *t = thread_create("bootstrap2", &bootstrap2, NULL, DEFAULT_PRIORITY, DEFAULT_STACK_SIZE); - t->pinned_cpu = 0; + thread_set_pinned_cpu(t, 0); thread_detach(t); thread_resume(t); |