summaryrefslogtreecommitdiffstats
path: root/arch/x86/include/asm/msr.h
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2016-01-11 17:45:32 -0800
committerLinus Torvalds <torvalds@linux-foundation.org>2016-01-11 17:45:32 -0800
commitae8a52185e5c070cf4510b323dbc1b9e46b897d6 (patch)
tree854c45d80e594383283f6f709c5001a84450355f /arch/x86/include/asm/msr.h
parent0ffedcda63f56eaca99a77392b9f057dfb738817 (diff)
parentd6b56b0bc68ba7927b286da86eda1d4d4dbe63f6 (diff)
downloadlinux-0-day-ae8a52185e5c070cf4510b323dbc1b9e46b897d6.tar.gz
linux-0-day-ae8a52185e5c070cf4510b323dbc1b9e46b897d6.tar.xz
Merge branch 'x86-platform-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull x86 platform updates from Ingo Molnar: "Two changes: - one to quirk-save/restore certain system MSRs across suspend/resume, to make certain Intel systems work better (Chen Yu) - and also to constify a read only structure (Julia Lawall)" * 'x86-platform-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: x86/platform/calgary: Constify cal_chipset_ops structures x86/pm: Introduce quirk framework to save/restore extra MSR registers around suspend/resume
Diffstat (limited to 'arch/x86/include/asm/msr.h')
-rw-r--r--arch/x86/include/asm/msr.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/arch/x86/include/asm/msr.h b/arch/x86/include/asm/msr.h
index 1e87bff093d13..93fb7c1cffda7 100644
--- a/arch/x86/include/asm/msr.h
+++ b/arch/x86/include/asm/msr.h
@@ -32,6 +32,16 @@ struct msr_regs_info {
int err;
};
+struct saved_msr {
+ bool valid;
+ struct msr_info info;
+};
+
+struct saved_msrs {
+ unsigned int num;
+ struct saved_msr *array;
+};
+
static inline unsigned long long native_read_tscp(unsigned int *aux)
{
unsigned long low, high;