sched_rr_interval() seems always returned period in hz ticks, but same
always it was used as rate. Fix use side units to period in hz ticks.
This commit is contained in:
parent
65b31289ae
commit
9000aabf3b
@ -64,7 +64,7 @@ ksched_attach(struct ksched **p)
|
||||
struct ksched *ksched= p31b_malloc(sizeof(*ksched));
|
||||
|
||||
ksched->rr_interval.tv_sec = 0;
|
||||
ksched->rr_interval.tv_nsec = 1000000000L / sched_rr_interval();
|
||||
ksched->rr_interval.tv_nsec = 1000000000L / hz * sched_rr_interval();
|
||||
|
||||
*p = ksched;
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user