Commit 956d033fb2eb3f8818260cdf01644bf4dc1a9e33
1 parent
642f11c53f
Exists in
master
and in
4 other branches
cpuidle: CPUIDLE_FLAG_TLB_FLUSHED is specific to intel_idle
Signed-off-by: Len Brown <len.brown@intel.com>
Showing 2 changed files with 8 additions and 1 deletions Side-by-side Diff
drivers/idle/intel_idle.c
... | ... | @@ -82,6 +82,14 @@ |
82 | 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 | 93 | * States are indexed by the cstate number, |
86 | 94 | * which is also the index into the MWAIT hint array. |
87 | 95 | * Thus C0 is a dummy. |
include/linux/cpuidle.h
... | ... | @@ -49,7 +49,6 @@ |
49 | 49 | #define CPUIDLE_FLAG_TIME_VALID (0x01) /* is residency time measurable? */ |
50 | 50 | #define CPUIDLE_FLAG_CHECK_BM (0x02) /* BM activity will exit state */ |
51 | 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 | 53 | #define CPUIDLE_DRIVER_FLAGS_MASK (0xFFFF0000) |
55 | 54 |