cpu_idle.h revision 0e7515250c8395f368aa45fb9acae7c4f8f8b786
0e7515250c8395f368aa45fb9acae7c4f8f8b786Eric Saxe * CDDL HEADER START
0e7515250c8395f368aa45fb9acae7c4f8f8b786Eric Saxe * The contents of this file are subject to the terms of the
0e7515250c8395f368aa45fb9acae7c4f8f8b786Eric Saxe * Common Development and Distribution License (the "License").
0e7515250c8395f368aa45fb9acae7c4f8f8b786Eric Saxe * You may not use this file except in compliance with the License.
0e7515250c8395f368aa45fb9acae7c4f8f8b786Eric Saxe * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
0e7515250c8395f368aa45fb9acae7c4f8f8b786Eric Saxe * See the License for the specific language governing permissions
0e7515250c8395f368aa45fb9acae7c4f8f8b786Eric Saxe * and limitations under the License.
0e7515250c8395f368aa45fb9acae7c4f8f8b786Eric Saxe * When distributing Covered Code, include this CDDL HEADER in each
0e7515250c8395f368aa45fb9acae7c4f8f8b786Eric Saxe * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
0e7515250c8395f368aa45fb9acae7c4f8f8b786Eric Saxe * If applicable, add the following below this CDDL HEADER, with the
0e7515250c8395f368aa45fb9acae7c4f8f8b786Eric Saxe * fields enclosed by brackets "[]" replaced with your own identifying
0e7515250c8395f368aa45fb9acae7c4f8f8b786Eric Saxe * information: Portions Copyright [yyyy] [name of copyright owner]
0e7515250c8395f368aa45fb9acae7c4f8f8b786Eric Saxe * CDDL HEADER END
0e7515250c8395f368aa45fb9acae7c4f8f8b786Eric Saxe * Copyright 2009 Sun Microsystems, Inc. All rights reserved.
0e7515250c8395f368aa45fb9acae7c4f8f8b786Eric Saxe * Use is subject to license terms.
0e7515250c8395f368aa45fb9acae7c4f8f8b786Eric Saxe#define CPU_IDLE_DEEP_CFG (0x1) /* Deep Idle disabled by user */
0e7515250c8395f368aa45fb9acae7c4f8f8b786Eric Saxe#define CPU_CSTATE_LATENCY_UNDEF (1000000) /* ACPI info missing */
0e7515250c8395f368aa45fb9acae7c4f8f8b786Eric Saxetypedef struct cpu_idle_kstat_s {
0e7515250c8395f368aa45fb9acae7c4f8f8b786Eric Saxe struct kstat_named addr_space_id; /* register address space id */
0e7515250c8395f368aa45fb9acae7c4f8f8b786Eric Saxe struct kstat_named cs_latency; /* worst latency */
0e7515250c8395f368aa45fb9acae7c4f8f8b786Eric Saxe struct kstat_named cs_power; /* average power consumption */
0e7515250c8395f368aa45fb9acae7c4f8f8b786Eric Saxeextern void cpu_acpi_idle(void);
0e7515250c8395f368aa45fb9acae7c4f8f8b786Eric Saxeextern void cpuidle_manage_cstates(void *);
0e7515250c8395f368aa45fb9acae7c4f8f8b786Eric Saxe#endif /* _CPUIDLE_H */