Skip to content

Commit 9124130

Browse files
Fenghua Yuingomolnar
authored andcommitted
x86/cpufeatures: Enumerate cldemote instruction
cldemote is a new instruction in future x86 processors. It hints to hardware that a specified cache line should be moved ("demoted") from the cache(s) closest to the processor core to a level more distant from the processor core. This instruction is faster than snooping to make the cache line available for other cores. cldemote instruction is indicated by the presence of the CPUID feature flag CLDEMOTE (CPUID.(EAX=0x7, ECX=0):ECX[bit25]). More details on cldemote instruction can be found in the latest Intel Architecture Instruction Set Extensions and Future Features Programming Reference. Signed-off-by: Fenghua Yu <fenghua.yu@intel.com> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Cc: "Ravi V Shankar" <ravi.v.shankar@intel.com> Cc: "H. Peter Anvin" <hpa@linux.intel.com> Cc: "Ashok Raj" <ashok.raj@intel.com> Link: https://lkml.kernel.org/r/1524508162-192587-1-git-send-email-fenghua.yu@intel.com Signed-off-by: Ingo Molnar <mingo@kernel.org>
1 parent 09e182d commit 9124130

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎arch/x86/include/asm/cpufeatures.h‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -320,6 +320,7 @@
320320
#define X86_FEATURE_AVX512_VPOPCNTDQ (16*32+14) /* POPCNT for vectors of DW/QW */
321321
#define X86_FEATURE_LA57 (16*32+16) /* 5-level page tables */
322322
#define X86_FEATURE_RDPID (16*32+22) /* RDPID instruction */
323+
#define X86_FEATURE_CLDEMOTE (16*32+25) /* CLDEMOTE instruction */
323324

324325
/* AMD-defined CPU features, CPUID level 0x80000007 (EBX), word 17 */
325326
#define X86_FEATURE_OVERFLOW_RECOV (17*32+ 0) /* MCA overflow recovery support */

0 commit comments

Comments
 (0)