Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 7 Jun 2011 01:06:49 +0000 (UTC)
From:      Marcel Moolenaar <marcel@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r222800 - head/sys/ia64/ia64
Message-ID:  <201106070106.p5716nBk059081@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: marcel
Date: Tue Jun  7 01:06:49 2011
New Revision: 222800
URL: http://svn.freebsd.org/changeset/base/222800

Log:
  Call set_cputicker() to have the time counter use the ITC register.
  Note that the ITC frequency is fixed.

Modified:
  head/sys/ia64/ia64/machdep.c

Modified: head/sys/ia64/ia64/machdep.c
==============================================================================
--- head/sys/ia64/ia64/machdep.c	Tue Jun  7 00:59:31 2011	(r222799)
+++ head/sys/ia64/ia64/machdep.c	Tue Jun  7 01:06:49 2011	(r222800)
@@ -786,6 +786,8 @@ ia64_init(void)
 	ia64_sal_init();
 	calculate_frequencies();
 
+	set_cputicker(ia64_get_itc, (u_long)itc_freq * 1000000, 0);
+
 	/*
 	 * Setup the PCPU data for the bootstrap processor. It is needed
 	 * by printf(). Also, since printf() has critical sections, we



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