Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 31 May 2011 15:49:29 +0000 (UTC)
From:      Nathan Whitehorn <nwhitehorn@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-projects@freebsd.org
Subject:   svn commit: r222533 - projects/pseries/powerpc/aim
Message-ID:  <201105311549.p4VFnTcx030087@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: nwhitehorn
Date: Tue May 31 15:49:28 2011
New Revision: 222533
URL: http://svn.freebsd.org/changeset/base/222533

Log:
  Be less yell-y about new CPUs when running under a hypervisor. Hopefully
  the HV has set them up in a reasonable way, and the chance we can change
  any important settings is low anyway.

Modified:
  projects/pseries/powerpc/aim/mp_cpudep.c

Modified: projects/pseries/powerpc/aim/mp_cpudep.c
==============================================================================
--- projects/pseries/powerpc/aim/mp_cpudep.c	Tue May 31 15:41:10 2011	(r222532)
+++ projects/pseries/powerpc/aim/mp_cpudep.c	Tue May 31 15:49:28 2011	(r222533)
@@ -344,6 +344,10 @@ cpudep_ap_setup()
 
 		break;
 	default:
+#ifdef __powerpc64__
+		if (!(mfmsr() & PSL_HV)) /* Rely on HV to have set things up */
+			break;
+#endif
 		printf("WARNING: Unknown CPU type. Cache performace may be "
 		    "suboptimal.\n");
 		break;



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