cpu/msp430_common: Cleanup

`void cpu_switch_context_exit(void)` assigns `sched_active_thread` just before
calling `sched_run()`. This is unneeded, as `sched_run()` will updated that
anyway. Also generally speaking, changing internal scheduler data from outside
the scheduler is a risky thing to do.
This commit is contained in:
Marian Buschsieweke 2019-03-21 16:53:53 +01:00
parent c391ed4109
commit 9a2f69b79c
No known key found for this signature in database
GPG Key ID: 61F64C6599B1539F

View File

@ -55,7 +55,6 @@ void *thread_isr_stack_start(void)
NORETURN void cpu_switch_context_exit(void)
{
sched_active_thread = sched_threads[0];
sched_run();
__restore_context();