summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/cpu/intel/common/common_init.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cpu/intel/common/common_init.c b/src/cpu/intel/common/common_init.c
index 3a06281662..9da162d05d 100644
--- a/src/cpu/intel/common/common_init.c
+++ b/src/cpu/intel/common/common_init.c
@@ -225,5 +225,5 @@ void enable_energy_perf_pref(void)
void set_energy_perf_pref(u8 pref)
{
msr_unset_and_set(IA32_HWP_REQUEST, IA32_HWP_REQUEST_EPP_MASK,
- pref << IA32_HWP_REQUEST_EPP_SHIFT);
+ (uint64_t)pref << IA32_HWP_REQUEST_EPP_SHIFT);
}