diff --git a/stand/powerpc/ofw/cas.c b/stand/powerpc/ofw/cas.c index 580ee56536d..4b9b4b386eb 100644 --- a/stand/powerpc/ofw/cas.c +++ b/stand/powerpc/ofw/cas.c @@ -191,10 +191,6 @@ ppc64_cas(void) ihandle_t ihandle; cell_t err; - /* Skip CAS when running on PowerNV */ - if (!ppc64_hv()) - return (0); - /* Perform CAS only for POWER8 and later cores */ switch (mfpvr() & PVR_VER_MASK) { case PVR_VER_P8: @@ -206,6 +202,10 @@ ppc64_cas(void) return (0); } + /* Skip CAS when running on PowerNV */ + if (!ppc64_hv()) + return (0); + ihandle = OF_open("/"); if (ihandle == -1) { printf("cas: failed to open / node\n");