[riot-commits] [RIOT-OS/RIOT] e1b810: core/sched: tiny logic optimization in idle case

Alexandre Abadie noreply at github.com
Tue Jul 21 11:50:27 CEST 2020


  Branch: refs/heads/master
  Home:   https://github.com/RIOT-OS/RIOT
  Commit: e1b810b613ceb065f4b7dd6740c0f63283d2e914
      https://github.com/RIOT-OS/RIOT/commit/e1b810b613ceb065f4b7dd6740c0f63283d2e914
  Author: Koen Zandberg <koen at bergzand.net>
  Date:   2020-07-20 (Mon, 20 Jul 2020)

  Changed paths:
    M core/sched.c

  Log Message:
  -----------
  core/sched: tiny logic optimization in idle case

In the case that the no_thread_idle feature is active, the
runqueue_bitcache is checked twice in the case no thread is available to
schedule. This changes the inner while loop to a do-while loop to save
one check from the initial loop iteration, saving a cycle or so in the
idle case.


  Commit: ea8183aac89b23f0a875af161595163a2f0b476e
      https://github.com/RIOT-OS/RIOT/commit/ea8183aac89b23f0a875af161595163a2f0b476e
  Author: Alexandre Abadie <alexandre.abadie at inria.fr>
  Date:   2020-07-21 (Tue, 21 Jul 2020)

  Changed paths:
    M core/sched.c

  Log Message:
  -----------
  Merge pull request #14559 from bergzand/pr/sched/idle_do_while

core/sched: tiny logic optimization in idle case


Compare: https://github.com/RIOT-OS/RIOT/compare/e8a8d12d9621...ea8183aac89b


More information about the commits mailing list