Print this page
PANKOVs restructure


   8  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
   9  * or http://www.opensolaris.org/os/licensing.
  10  * See the License for the specific language governing permissions
  11  * and limitations under the License.
  12  *
  13  * When distributing Covered Code, include this CDDL HEADER in each
  14  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15  * If applicable, add the following below this CDDL HEADER, with the
  16  * fields enclosed by brackets "[]" replaced with your own identifying
  17  * information: Portions Copyright [yyyy] [name of copyright owner]
  18  *
  19  * CDDL HEADER END
  20  */
  21 /*
  22  * Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved.
  23  */
  24 
  25 #include <sys/x86_archext.h>
  26 #include <sys/machsystm.h>
  27 #include <sys/x_call.h>
  28 #include <sys/acpi/acpi.h>
  29 #include <sys/acpica.h>
  30 #include <sys/pwrnow.h>
  31 #include <sys/cpu_acpi.h>
  32 #include <sys/cpupm.h>
  33 #include <sys/dtrace.h>
  34 #include <sys/sdt.h>
  35 
  36 static int pwrnow_init(cpu_t *);
  37 static void pwrnow_fini(cpu_t *);
  38 static void pwrnow_power(cpuset_t, uint32_t);
  39 static void pwrnow_stop(cpu_t *);
  40 
  41 static boolean_t pwrnow_cpb_supported(void);
  42 
  43 /*
  44  * Interfaces for modules implementing AMD's PowerNow!.
  45  */
  46 cpupm_state_ops_t pwrnow_ops = {
  47         "PowerNow! Technology",
  48         pwrnow_init,




   8  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
   9  * or http://www.opensolaris.org/os/licensing.
  10  * See the License for the specific language governing permissions
  11  * and limitations under the License.
  12  *
  13  * When distributing Covered Code, include this CDDL HEADER in each
  14  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15  * If applicable, add the following below this CDDL HEADER, with the
  16  * fields enclosed by brackets "[]" replaced with your own identifying
  17  * information: Portions Copyright [yyyy] [name of copyright owner]
  18  *
  19  * CDDL HEADER END
  20  */
  21 /*
  22  * Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved.
  23  */
  24 
  25 #include <sys/x86_archext.h>
  26 #include <sys/machsystm.h>
  27 #include <sys/x_call.h>
  28 #include <acpica/include/acpi.h>
  29 #include <sys/acpica.h>
  30 #include <sys/pwrnow.h>
  31 #include <sys/cpu_acpi.h>
  32 #include <sys/cpupm.h>
  33 #include <sys/dtrace.h>
  34 #include <sys/sdt.h>
  35 
  36 static int pwrnow_init(cpu_t *);
  37 static void pwrnow_fini(cpu_t *);
  38 static void pwrnow_power(cpuset_t, uint32_t);
  39 static void pwrnow_stop(cpu_t *);
  40 
  41 static boolean_t pwrnow_cpb_supported(void);
  42 
  43 /*
  44  * Interfaces for modules implementing AMD's PowerNow!.
  45  */
  46 cpupm_state_ops_t pwrnow_ops = {
  47         "PowerNow! Technology",
  48         pwrnow_init,