PERFORCE change 92708 for review

John Baldwin jhb at FreeBSD.org
Fri Mar 3 19:02:13 PST 2006


http://perforce.freebsd.org/chv.cgi?CH=92708

Change 92708 by jhb at jhb_zion on 2006/03/04 03:01:26

	Enable rpcc timecounter on SMP systems with only 1 CPU enabled.

Affected files ...

.. //depot/projects/smpng/sys/alpha/alpha/clock.c#21 edit

Differences ...

==== //depot/projects/smpng/sys/alpha/alpha/clock.c#21 (text+ko) ====

@@ -103,7 +103,6 @@
 u_int32_t timer_freq = TIMER_FREQ;
 
 extern int cycles_per_sec;
-extern int ncpus;
 
 static timecounter_get_t	i8254_get_timecount;
 static timecounter_get_t	alpha_get_timecount;
@@ -239,7 +238,7 @@
 		tc_init(&i8254_timecounter);
 	platform.clockintr = hardclock;
 
-	if (ncpus == 1) {
+	if (mp_ncpus == 1) {
 		alpha_timecounter.tc_frequency = cycles_per_sec;
 		tc_init(&alpha_timecounter);
 	}


More information about the p4-projects mailing list