Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 351103
b: refs/heads/master
c: 137ecc7
h: refs/heads/master
i:
  351101: 55f4cd3
  351099: 700c7f9
  351095: 686c85c
  351087: 2812928
  351071: 89ddfc8
  351039: bebd8c2
  350975: dec9faa
v: v3
  • Loading branch information
Len Brown committed Feb 9, 2013
1 parent 97295d9 commit 382de97
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 10 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 679204183472af16e8e75d2b1479459ad19bc67c
refs/heads/master: 137ecc779c80138723677209730738d76262e810
1 change: 0 additions & 1 deletion trunk/arch/x86/include/asm/mwait.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
#define MWAIT_SUBSTATE_MASK 0xf
#define MWAIT_CSTATE_MASK 0xf
#define MWAIT_SUBSTATE_SIZE 4
#define MWAIT_MAX_NUM_CSTATES 8

#define CPUID_MWAIT_LEAF 5
#define CPUID5_ECX_EXTENSIONS_SUPPORTED 0x1
Expand Down
16 changes: 8 additions & 8 deletions trunk/drivers/idle/intel_idle.c
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ static struct cpuidle_driver intel_idle_driver = {
.en_core_tk_irqen = 1,
};
/* intel_idle.max_cstate=0 disables driver */
static int max_cstate = MWAIT_MAX_NUM_CSTATES - 1;
static int max_cstate = CPUIDLE_STATE_MAX - 1;

static unsigned int mwait_substates;

Expand Down Expand Up @@ -123,7 +123,7 @@ static struct cpuidle_state *cpuidle_state_table;
* which is also the index into the MWAIT hint array.
* Thus C0 is a dummy.
*/
static struct cpuidle_state nehalem_cstates[MWAIT_MAX_NUM_CSTATES] = {
static struct cpuidle_state nehalem_cstates[CPUIDLE_STATE_MAX] = {
{ /* MWAIT C0 */ },
{ /* MWAIT C1 */
.name = "C1-NHM",
Expand All @@ -148,7 +148,7 @@ static struct cpuidle_state nehalem_cstates[MWAIT_MAX_NUM_CSTATES] = {
.enter = &intel_idle },
};

static struct cpuidle_state snb_cstates[MWAIT_MAX_NUM_CSTATES] = {
static struct cpuidle_state snb_cstates[CPUIDLE_STATE_MAX] = {
{ /* MWAIT C0 */ },
{ /* MWAIT C1 */
.name = "C1-SNB",
Expand Down Expand Up @@ -180,7 +180,7 @@ static struct cpuidle_state snb_cstates[MWAIT_MAX_NUM_CSTATES] = {
.enter = &intel_idle },
};

static struct cpuidle_state ivb_cstates[MWAIT_MAX_NUM_CSTATES] = {
static struct cpuidle_state ivb_cstates[CPUIDLE_STATE_MAX] = {
{ /* MWAIT C0 */ },
{ /* MWAIT C1 */
.name = "C1-IVB",
Expand Down Expand Up @@ -212,7 +212,7 @@ static struct cpuidle_state ivb_cstates[MWAIT_MAX_NUM_CSTATES] = {
.enter = &intel_idle },
};

static struct cpuidle_state hsw_cstates[MWAIT_MAX_NUM_CSTATES] = {
static struct cpuidle_state hsw_cstates[CPUIDLE_STATE_MAX] = {
{ /* MWAIT C0 */ },
{ /* MWAIT C1 */
.name = "C1-HSW",
Expand Down Expand Up @@ -244,7 +244,7 @@ static struct cpuidle_state hsw_cstates[MWAIT_MAX_NUM_CSTATES] = {
.enter = &intel_idle },
};

static struct cpuidle_state atom_cstates[MWAIT_MAX_NUM_CSTATES] = {
static struct cpuidle_state atom_cstates[CPUIDLE_STATE_MAX] = {
{ /* MWAIT C0 */ },
{ /* MWAIT C1 */
.name = "C1-ATM",
Expand Down Expand Up @@ -503,7 +503,7 @@ static int intel_idle_cpuidle_driver_init(void)

drv->state_count = 1;

for (cstate = 1; cstate < MWAIT_MAX_NUM_CSTATES; ++cstate) {
for (cstate = 1; cstate < CPUIDLE_STATE_MAX; ++cstate) {
int num_substates;

if (cstate > max_cstate) {
Expand Down Expand Up @@ -560,7 +560,7 @@ static int intel_idle_cpu_init(int cpu)

dev->state_count = 1;

for (cstate = 1; cstate < MWAIT_MAX_NUM_CSTATES; ++cstate) {
for (cstate = 1; cstate < CPUIDLE_STATE_MAX; ++cstate) {
int num_substates;

if (cstate > max_cstate) {
Expand Down

0 comments on commit 382de97

Please sign in to comment.