lk/include/kernel/thread.h:
thread_set_pinned_cpu
#if WITH_SMP #define thread_curr_cpu(t) ((t)->curr_cpu) #define thread_pinned_cpu(t) ((t)->pinned_cpu) #define thread_set_curr_cpu(t,c) ((t)->curr_cpu = (c)) #define thread_set_pinned_cpu(t, c) ((t)->pinned_cpu = (c)) #else #define thread_curr_cpu(t) (0) #define thread_pinned_cpu(t) (-1) #define thread_set_curr_cpu(t,c) do {} while(0) #define thread_set_pinned_cpu(t, c) do {} while(0) #endif