Author: kib
Date: Tue Apr 24 20:22:30 2018
New Revision: 332970
URL: https://svnweb.freebsd.org/changeset/base/332970

Log:
  Use IS_BSP() macro.
  
  Noted and reviewed by:        jhb
  Sponsored by: The FreeBSD Foundation
  MFC after:    3 days
  Differential revision:        https://reviews.freebsd.org/D15157

Modified:
  head/sys/x86/x86/mca.c

Modified: head/sys/x86/x86/mca.c
==============================================================================
--- head/sys/x86/x86/mca.c      Tue Apr 24 20:21:59 2018        (r332969)
+++ head/sys/x86/x86/mca.c      Tue Apr 24 20:22:30 2018        (r332970)
@@ -1103,7 +1103,7 @@ _mca_init(int boot)
                if (mcg_cap & MCG_CAP_CTL_P)
                        /* Enable MCA features. */
                        wrmsr(MSR_MCG_CTL, MCG_CTL_ENABLE);
-               if (PCPU_GET(cpuid) == 0 && boot)
+               if (IS_BSP() && boot)
                        mca_setup(mcg_cap);
 
                /*
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to