firelzrd / bore-scheduler

BORE (Burst-Oriented Response Enhancer) CPU Scheduler
GNU General Public License v2.0
314 stars 13 forks source link

32-bit target #8

Closed fbswe closed 1 year ago

fbswe commented 1 year ago

in core.c: if (cnt) avg = (sum / cnt) << 8;

This code will not work in a 32-bit target environment. correct to if (cnt) avg = do_div(sum, cnt) << 8;

firelzrd commented 1 year ago

Merged. Thanks for your helpful contribution!

firelzrd commented 1 year ago

Fixed. Thank you, skbeh!