forked from Minki/linux
be7825c19b
Intel PCONFIG targets are enumerated via new CPUID leaf 0x1b. This patch detects all supported targets of PCONFIG and implements helper to check if the target is supported. Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com> Cc: Dave Hansen <dave.hansen@intel.com> Cc: Kai Huang <kai.huang@linux.intel.com> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: Tom Lendacky <thomas.lendacky@amd.com> Cc: linux-mm@kvack.org Link: http://lkml.kernel.org/r/20180305162610.37510-5-kirill.shutemov@linux.intel.com Signed-off-by: Ingo Molnar <mingo@kernel.org>
16 lines
298 B
C
16 lines
298 B
C
#ifndef _ASM_X86_INTEL_PCONFIG_H
|
|
#define _ASM_X86_INTEL_PCONFIG_H
|
|
|
|
#include <asm/asm.h>
|
|
#include <asm/processor.h>
|
|
|
|
enum pconfig_target {
|
|
INVALID_TARGET = 0,
|
|
MKTME_TARGET = 1,
|
|
PCONFIG_TARGET_NR
|
|
};
|
|
|
|
int pconfig_target_supported(enum pconfig_target target);
|
|
|
|
#endif /* _ASM_X86_INTEL_PCONFIG_H */
|