aboutsummaryrefslogtreecommitdiff
path: root/top
diff options
context:
space:
mode:
authorBrian Swetland <swetland@frotz.net>2016-01-16 17:32:57 -0800
committerBrian Swetland <swetland@frotz.net>2016-01-17 18:46:51 -0800
commit1de5270d6e57109a3c6423fcd5b43e6e8fd71692 (patch)
tree909f4caeeddb5661f07257ec5a41fb33cf62a866 /top
parenta619f2e9cdbcd170ca19fc06c99a08a611f90828 (diff)
downloadlk-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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/top/main.c b/top/main.c
index 0065a945..9e91e841 100644
--- a/top/main.c
+++ b/top/main.c
@@ -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);