Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 3 Apr 2006 07:32:58 GMT
From:      Kip Macy <kmacy@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 94521 for review
Message-ID:  <200604030732.k337Ww9u058922@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=94521

Change 94521 by kmacy@kmacy_storage:sun4v_work on 2006/04/03 07:31:57

	make idle hv_cpu_yield SMP only for now

Affected files ...

.. //depot/projects/kmacy_sun4v/src/sys/sun4v/sun4v/machdep.c#19 edit

Differences ...

==== //depot/projects/kmacy_sun4v/src/sys/sun4v/sun4v/machdep.c#19 (text+ko) ====

@@ -735,8 +735,11 @@
 void
 cpu_idle(void)
 {
-	/* Insert code to halt (until next interrupt) for the idle loop */
+	/* shouldn't be needed - but.. */
 	wrpr(pil, 0, 0);
+#ifdef SMP
+	hv_cpu_yield();
+#endif
 }
 
 int



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