diff options
-rw-r--r-- | drivers/idle/intel_idle.c | 8 | ||||
-rw-r--r-- | include/linux/cpuidle.h | 1 |
2 files changed, 8 insertions, 1 deletions
diff --git a/drivers/idle/intel_idle.c b/drivers/idle/intel_idle.c index 21d387132dbc..8256309deaad 100644 --- a/drivers/idle/intel_idle.c +++ b/drivers/idle/intel_idle.c | |||
@@ -82,6 +82,14 @@ static int intel_idle(struct cpuidle_device *dev, struct cpuidle_state *state); | |||
82 | static struct cpuidle_state *cpuidle_state_table; | 82 | static struct cpuidle_state *cpuidle_state_table; |
83 | 83 | ||
84 | /* | 84 | /* |
85 | * Set this flag for states where the HW flushes the TLB for us | ||
86 | * and so we don't need cross-calls to keep it consistent. | ||
87 | * If this flag is set, SW flushes the TLB, so even if the | ||
88 | * HW doesn't do the flushing, this flag is safe to use. | ||
89 | */ | ||
90 | #define CPUIDLE_FLAG_TLB_FLUSHED 0x10000 | ||
91 | |||
92 | /* | ||
85 | * States are indexed by the cstate number, | 93 | * States are indexed by the cstate number, |
86 | * which is also the index into the MWAIT hint array. | 94 | * which is also the index into the MWAIT hint array. |
87 | * Thus C0 is a dummy. | 95 | * Thus C0 is a dummy. |
diff --git a/include/linux/cpuidle.h b/include/linux/cpuidle.h index c25295337382..6be722c725d5 100644 --- a/include/linux/cpuidle.h +++ b/include/linux/cpuidle.h | |||
@@ -49,7 +49,6 @@ struct cpuidle_state { | |||
49 | #define CPUIDLE_FLAG_TIME_VALID (0x01) /* is residency time measurable? */ | 49 | #define CPUIDLE_FLAG_TIME_VALID (0x01) /* is residency time measurable? */ |
50 | #define CPUIDLE_FLAG_CHECK_BM (0x02) /* BM activity will exit state */ | 50 | #define CPUIDLE_FLAG_CHECK_BM (0x02) /* BM activity will exit state */ |
51 | #define CPUIDLE_FLAG_IGNORE (0x100) /* ignore during this idle period */ | 51 | #define CPUIDLE_FLAG_IGNORE (0x100) /* ignore during this idle period */ |
52 | #define CPUIDLE_FLAG_TLB_FLUSHED (0x200) /* tlb will be flushed */ | ||
53 | 52 | ||
54 | #define CPUIDLE_DRIVER_FLAGS_MASK (0xFFFF0000) | 53 | #define CPUIDLE_DRIVER_FLAGS_MASK (0xFFFF0000) |
55 | 54 | ||