[kernel] fix some smp code in particular build configurations
This commit is contained in:
@@ -520,7 +520,7 @@ void thread_resched(void)
|
||||
#endif
|
||||
|
||||
/* set some optional target debug leds */
|
||||
target_set_debug_led(0, !thread_is_idle(idle_thread));
|
||||
target_set_debug_led(0, !thread_is_idle(&idle_threads[cpu]));
|
||||
|
||||
/* do the switch */
|
||||
set_current_thread(newthread);
|
||||
|
||||
@@ -170,12 +170,12 @@ void timer_cancel(timer_t *timer)
|
||||
{
|
||||
DEBUG_ASSERT(timer->magic == TIMER_MAGIC);
|
||||
|
||||
uint cpu = arch_curr_cpu_num();
|
||||
|
||||
spin_lock_saved_state_t state;
|
||||
spin_lock_irqsave(&timer_lock, state);
|
||||
|
||||
#if PLATFORM_HAS_DYNAMIC_TIMER
|
||||
uint cpu = arch_curr_cpu_num();
|
||||
|
||||
timer_t *oldhead = list_peek_head_type(&timers[cpu].timer_queue, timer_t, node);
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user