From owner-svn-src-all@FreeBSD.ORG Fri Aug 10 18:19:57 2012 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C6C6C106566C; Fri, 10 Aug 2012 18:19:57 +0000 (UTC) (envelope-from mav@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id B1E168FC0A; Fri, 10 Aug 2012 18:19:57 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id q7AIJv0U063025; Fri, 10 Aug 2012 18:19:57 GMT (envelope-from mav@svn.freebsd.org) Received: (from mav@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id q7AIJvHJ063023; Fri, 10 Aug 2012 18:19:57 GMT (envelope-from mav@svn.freebsd.org) Message-Id: <201208101819.q7AIJvHJ063023@svn.freebsd.org> From: Alexander Motin Date: Fri, 10 Aug 2012 18:19:57 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r239183 - head/sys/kern X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Aug 2012 18:19:57 -0000 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;