-/*
- * Debugging interface to the CPU power management code.
- *
- * Note: Does not need locks because it disables interrupts over
- * the call.
- */
-static int
-pmsSysctl(__unused struct sysctl_oid *oidp, __unused void *arg1,
- __unused int arg2, struct sysctl_req *req)
-{
- pmsctl_t ctl;
- int error;
- boolean_t intr;
-
- if ((error = SYSCTL_IN(req, &ctl, sizeof(ctl))))
- return(error);
-
- intr = ml_set_interrupts_enabled(FALSE); /* No interruptions in here */
- error = pmsControl(ctl.request, (user_addr_t)(uintptr_t)ctl.reqaddr, ctl.reqsize);
- (void)ml_set_interrupts_enabled(intr); /* Restore interruptions */
-
- return(error);
-}
-
-SYSCTL_PROC(_hw, OID_AUTO, pms, CTLTYPE_STRUCT | CTLFLAG_WR | CTLFLAG_LOCKED, 0, 0, pmsSysctl, "S", "Processor Power Management");
-
-