* Increase machdep.cpu_idle_repeat from 4 to 750. It now takes longer
before the kernel will move from HLT/MONITOR/MWAIT to ACPI-based halting.
* Improves benchmark performance significantly on recent cpus without
eating up too much extra power, but laptop tests are still pending.
* Laptop users can always set it back to 4.
static int cpu_idle_hlt = 2;
static int cpu_idle_hltcnt;
static int cpu_idle_spincnt;
-static u_int cpu_idle_repeat = 4;
+static u_int cpu_idle_repeat = 750;
SYSCTL_INT(_machdep, OID_AUTO, cpu_idle_hlt, CTLFLAG_RW,
&cpu_idle_hlt, 0, "Idle loop HLT enable");
SYSCTL_INT(_machdep, OID_AUTO, cpu_idle_hltcnt, CTLFLAG_RW,
static int cpu_idle_hlt = 2;
static int cpu_idle_hltcnt;
static int cpu_idle_spincnt;
-static u_int cpu_idle_repeat = 4;
+static u_int cpu_idle_repeat = 750;
SYSCTL_INT(_machdep, OID_AUTO, cpu_idle_hlt, CTLFLAG_RW,
&cpu_idle_hlt, 0, "Idle loop HLT enable");
SYSCTL_INT(_machdep, OID_AUTO, cpu_idle_hltcnt, CTLFLAG_RW,