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:
Alexander Motin 2012-08-10 18:19:57 +00:00
parent 65b31289ae
commit 9000aabf3b

View File

@ -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;