Print this page
PANKOVs restructure


  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  * Copyright (c) 2009,  Intel Corporation.
  26  * All Rights Reserved.
  27  */
  28 
  29 #include <sys/x86_archext.h>
  30 #include <sys/machsystm.h>
  31 #include <sys/archsystm.h>
  32 #include <sys/x_call.h>
  33 #include <sys/acpi/acpi.h>
  34 #include <sys/acpica.h>
  35 #include <sys/speedstep.h>
  36 #include <sys/cpu_acpi.h>
  37 #include <sys/cpupm.h>
  38 #include <sys/dtrace.h>
  39 #include <sys/sdt.h>
  40 
  41 static int speedstep_init(cpu_t *);
  42 static void speedstep_fini(cpu_t *);
  43 static void speedstep_power(cpuset_t, uint32_t);
  44 static void speedstep_stop(cpu_t *);
  45 static boolean_t speedstep_turbo_supported(void);
  46 
  47 /*
  48  * Interfaces for modules implementing Intel's Enhanced SpeedStep.
  49  */
  50 cpupm_state_ops_t speedstep_ops = {
  51         "Enhanced SpeedStep Technology",
  52         speedstep_init,
  53         speedstep_fini,




  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  * Copyright (c) 2009,  Intel Corporation.
  26  * All Rights Reserved.
  27  */
  28 
  29 #include <sys/x86_archext.h>
  30 #include <sys/machsystm.h>
  31 #include <sys/archsystm.h>
  32 #include <sys/x_call.h>
  33 #include <acpica/include/acpi.h>
  34 #include <sys/acpica.h>
  35 #include <sys/speedstep.h>
  36 #include <sys/cpu_acpi.h>
  37 #include <sys/cpupm.h>
  38 #include <sys/dtrace.h>
  39 #include <sys/sdt.h>
  40 
  41 static int speedstep_init(cpu_t *);
  42 static void speedstep_fini(cpu_t *);
  43 static void speedstep_power(cpuset_t, uint32_t);
  44 static void speedstep_stop(cpu_t *);
  45 static boolean_t speedstep_turbo_supported(void);
  46 
  47 /*
  48  * Interfaces for modules implementing Intel's Enhanced SpeedStep.
  49  */
  50 cpupm_state_ops_t speedstep_ops = {
  51         "Enhanced SpeedStep Technology",
  52         speedstep_init,
  53         speedstep_fini,