]> git.baikalelectronics.ru Git - kernel.git/commit
x86/cpufeatures: Enumerate cldemote instruction
authorFenghua Yu <fenghua.yu@intel.com>
Mon, 23 Apr 2018 18:29:22 +0000 (11:29 -0700)
committerIngo Molnar <mingo@kernel.org>
Thu, 26 Apr 2018 05:31:12 +0000 (07:31 +0200)
commit314a6b1531e04a43dc91209ddf1c0ef460e3d9c3
treef145c5d1b3eaf3fa5eadaaf4978438770282b7fa
parentdb886bb485f6114f0686ac606300cfe87a918879
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>
arch/x86/include/asm/cpufeatures.h