Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge tag 'sched_urgent_for_v5.18_rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip

Pull scheduler fix from Borislav Petkov:

- Fix a corner case when calculating sched runqueue variables

That fix also removes a check for a zero divisor in the code, without
mentioning it. Vincent clarified that it's ok after I whined about it:

https://lore.kernel.org/all/CAKfTPtD2QEyZ6ADd5WrwETMOX0XOwJGnVddt7VHgfURdqgOS-Q@mail.gmail.com/

* tag 'sched_urgent_for_v5.18_rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
sched/pelt: Fix attach_entity_load_avg() corner case

+5 -5
+5 -5
kernel/sched/fair.c
··· 3829 3829 3830 3830 se->avg.runnable_sum = se->avg.runnable_avg * divider; 3831 3831 3832 - se->avg.load_sum = divider; 3833 - if (se_weight(se)) { 3834 - se->avg.load_sum = 3835 - div_u64(se->avg.load_avg * se->avg.load_sum, se_weight(se)); 3836 - } 3832 + se->avg.load_sum = se->avg.load_avg * divider; 3833 + if (se_weight(se) < se->avg.load_sum) 3834 + se->avg.load_sum = div_u64(se->avg.load_sum, se_weight(se)); 3835 + else 3836 + se->avg.load_sum = 1; 3837 3837 3838 3838 enqueue_load_avg(cfs_rq, se); 3839 3839 cfs_rq->avg.util_avg += se->avg.util_avg;