Print this page
PANKOVs restructure


  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 2009 Sun Microsystems, Inc.  All rights reserved.
  23  * Use is subject to license terms.
  24  */
  25 /*
  26  * Copyright (c) 2009-2010, Intel Corporation.
  27  * All rights reserved.
  28  */
  29 
  30 #include <sys/x86_archext.h>
  31 #include <sys/machsystm.h>
  32 #include <sys/x_call.h>
  33 #include <sys/stat.h>
  34 #include <sys/acpi/acpi.h>
  35 #include <sys/acpica.h>
  36 #include <sys/cpu_acpi.h>
  37 #include <sys/cpu_idle.h>
  38 #include <sys/cpupm.h>
  39 #include <sys/cpu_event.h>
  40 #include <sys/hpet.h>
  41 #include <sys/archsystm.h>
  42 #include <vm/hat_i86.h>
  43 #include <sys/dtrace.h>
  44 #include <sys/sdt.h>
  45 #include <sys/callb.h>
  46 
  47 #define CSTATE_USING_HPET               1
  48 #define CSTATE_USING_LAT                2
  49 
  50 #define CPU_IDLE_STOP_TIMEOUT           1000
  51 
  52 extern void cpu_idle_adaptive(void);
  53 extern uint32_t cpupm_next_cstate(cma_c_state_t *cs_data,
  54     cpu_acpi_cstate_t *cstates, uint32_t cs_count, hrtime_t start);




  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 2009 Sun Microsystems, Inc.  All rights reserved.
  23  * Use is subject to license terms.
  24  */
  25 /*
  26  * Copyright (c) 2009-2010, Intel Corporation.
  27  * All rights reserved.
  28  */
  29 
  30 #include <sys/x86_archext.h>
  31 #include <sys/machsystm.h>
  32 #include <sys/x_call.h>
  33 #include <sys/stat.h>
  34 #include <acpica/include/acpi.h>
  35 #include <sys/acpica.h>
  36 #include <sys/cpu_acpi.h>
  37 #include <sys/cpu_idle.h>
  38 #include <sys/cpupm.h>
  39 #include <sys/cpu_event.h>
  40 #include <sys/hpet.h>
  41 #include <sys/archsystm.h>
  42 #include <vm/hat_i86.h>
  43 #include <sys/dtrace.h>
  44 #include <sys/sdt.h>
  45 #include <sys/callb.h>
  46 
  47 #define CSTATE_USING_HPET               1
  48 #define CSTATE_USING_LAT                2
  49 
  50 #define CPU_IDLE_STOP_TIMEOUT           1000
  51 
  52 extern void cpu_idle_adaptive(void);
  53 extern uint32_t cpupm_next_cstate(cma_c_state_t *cs_data,
  54     cpu_acpi_cstate_t *cstates, uint32_t cs_count, hrtime_t start);