• Jan Kiszka's avatar
    cobalt: sched-quota: Fix live-updating if quotas, once more · 133e9969
    Jan Kiszka authored
    f116e7eb already tried to enable live updates of a quota group but
    got one thing wrong and missed another catch:
    
    First, we must not use group_is_active() to check if the group is
    currently consuming time. That has to be the same logic as in
    xnsched_quota_pick(), i.e. a check of the currently running thread on
    the target sched belongs to the modified group.
    
    The second issue is that, if a group had no budget on refill or consumed
    it in this period already, an extension of the budget missed to move
    expired threads back to the runqueue.
    Signed-off-by: Jan Kiszka's avatarJan Kiszka <jan.kiszka@siemens.com>
    133e9969
Name
Last commit
Last update
config Loading commit data...
debian Loading commit data...
demo Loading commit data...
doc Loading commit data...
include Loading commit data...
kernel Loading commit data...
lib Loading commit data...
scripts Loading commit data...
testsuite Loading commit data...
utils Loading commit data...
.clang-format Loading commit data...
.gitignore Loading commit data...
.travis.yml Loading commit data...
CONTRIBUTING.md Loading commit data...
Makefile.am Loading commit data...
README Loading commit data...
configure.ac Loading commit data...