[riot-notifications] [RIOT-OS/RIOT] cpu/msp430_common: Cleanup (#11229)

Marian Buschsieweke notifications at github.com
Thu Mar 21 17:01:33 CET 2019


### Contribution description
`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.

### Testing procedure
Flash and run `tests/thread_basic` on a MSP430 based board.

### Issues/PRs references
Spun out of https://github.com/RIOT-OS/RIOT/pull/11226
You can view, comment on, or merge this pull request online at:

  https://github.com/RIOT-OS/RIOT/pull/11229

-- Commit Summary --

  * cpu/msp430_common: Cleanup

-- File Changes --

    M cpu/msp430_common/cpu.c (1)

-- Patch Links --

https://github.com/RIOT-OS/RIOT/pull/11229.patch
https://github.com/RIOT-OS/RIOT/pull/11229.diff

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/11229
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190321/31ea9753/attachment.html>


More information about the notifications mailing list