diff --git a/sys/dev/k8temp/k8temp.c b/sys/dev/k8temp/k8temp.c index 4038ed2a66f4..c8e5c1f7deb2 100644 --- a/sys/dev/k8temp/k8temp.c +++ b/sys/dev/k8temp/k8temp.c @@ -265,12 +265,12 @@ k8temp_sysctl(SYSCTL_HANDLER_ARGS) case CORE0: auxtemp[0] = k8temp_gettemp(dev, SENSOR0_CORE0); auxtemp[1] = k8temp_gettemp(dev, SENSOR1_CORE0); - temp = MAX(auxtemp[0], auxtemp[1]); + temp = imax(auxtemp[0], auxtemp[1]); break; case CORE1: auxtemp[0] = k8temp_gettemp(dev, SENSOR0_CORE1); auxtemp[1] = k8temp_gettemp(dev, SENSOR1_CORE1); - temp = MAX(auxtemp[0], auxtemp[1]); + temp = imax(auxtemp[0], auxtemp[1]); break; default: temp = k8temp_gettemp(dev, arg2);