From f33e835a064d11179c37d2c306ba024aa3a636fd Mon Sep 17 00:00:00 2001 From: Elyes HAOUAS Date: Wed, 24 Oct 2018 16:24:44 +0200 Subject: nb/intel/gm45: Use macro instead of magic number Change-Id: I5caa6163e5471feda170600c21320821f4286c65 Signed-off-by: Elyes HAOUAS Reviewed-on: https://review.coreboot.org/29254 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Georgi --- src/northbridge/intel/gm45/pm.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/northbridge/intel') diff --git a/src/northbridge/intel/gm45/pm.c b/src/northbridge/intel/gm45/pm.c index 7a3b498b11..17a22dc8e3 100644 --- a/src/northbridge/intel/gm45/pm.c +++ b/src/northbridge/intel/gm45/pm.c @@ -20,8 +20,8 @@ #include #include #include -#include #include +#include #include "gm45.h" @@ -268,7 +268,8 @@ void init_pm(const sysinfo_t *const sysinfo, int do_freq_scaling_cfg) MCHBAR32(0x94) |= 3 << 22; } - const int cpu_supports_super_lfm = rdmsr(0xee).lo & (1 << 27); + const int cpu_supports_super_lfm = + rdmsr(MSR_EXTENDED_CONFIG).lo & (1 << 27); if ((stepping >= STEPPING_B0) && cpu_supports_super_lfm) { MCHBAR16(CLKCFG_MCHBAR) &= ~(1 << 7); MCHBAR16(CLKCFG_MCHBAR) |= 1 << 14; -- cgit v1.2.3