Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 10 Aug 2012 18:19:57 +0000 (UTC)
From:      Alexander Motin <mav@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r239183 - head/sys/kern
Message-ID:  <201208101819.q7AIJvHJ063023@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mav
Date: Fri Aug 10 18:19:57 2012
New Revision: 239183
URL: http://svn.freebsd.org/changeset/base/239183

Log:
  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.

Modified:
  head/sys/kern/ksched.c

Modified: head/sys/kern/ksched.c
==============================================================================
--- head/sys/kern/ksched.c	Fri Aug 10 17:43:20 2012	(r239182)
+++ head/sys/kern/ksched.c	Fri Aug 10 18:19:57 2012	(r239183)
@@ -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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201208101819.q7AIJvHJ063023>