Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 19 Mar 2002 02:42:18 -0800 (PST)
From:      Peter Wemm <peter@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 7939 for review
Message-ID:  <200203191042.g2JAgIB21504@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://people.freebsd.org/~peter/p4db/chv.cgi?CH=7939

Change 7939 by peter@peter_overcee on 2002/03/19 02:42:08

	Turn off ITC when in SMP mode.  It isn't sync'ed, we'll use the
	ACPI timer instead.

Affected files ...

... //depot/projects/ia64/sys/ia64/ia64/clock.c#3 edit

Differences ...

==== //depot/projects/ia64/sys/ia64/ia64/clock.c#3 (text+ko) ====

@@ -82,6 +82,7 @@
 
 extern u_int64_t itc_frequency;
 
+#ifndef SMP
 static timecounter_get_t	ia64_get_timecount;
 
 static struct timecounter ia64_timecounter = {
@@ -94,6 +95,7 @@
 
 SYSCTL_OPAQUE(_debug, OID_AUTO, ia64_timecounter, CTLFLAG_RD, 
 	&ia64_timecounter, sizeof(ia64_timecounter), "S,timecounter", "");
+#endif
 
 /* Values for timerX_state: */
 #define	RELEASED	0
@@ -187,8 +189,10 @@
 	scaled_ticks_per_cycle = ((u_int64_t)hz << FIX_SHIFT) / freq;
 	max_cycles_per_tick = 2*freq / hz;
 
+#ifndef SMP
 	ia64_timecounter.tc_frequency = freq;
 	tc_init(&ia64_timecounter);
+#endif
 
 	ia64_set_itm(ia64_get_itc() + (itc_frequency + hz/2) / hz);
 	ia64_set_itv(255);	/* highest priority class */
@@ -418,11 +422,13 @@
 	CLOCK_SET(clockdev, &ct);
 }
 
+#ifndef SMP
 static unsigned
 ia64_get_timecount(struct timecounter* tc)
 {
     return ia64_get_itc();
 }
+#endif
 
 int
 acquire_timer2(int mode)

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe p4-projects" in the body of the message




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