Commit 901d2345 authored by Dave Jones's avatar Dave Jones Committed by Dave Jones

[CPUFREQ] Fix compiler warnings in msr macros.

parent 1679b02a
......@@ -17,16 +17,16 @@
: /* no outputs */ \
: "c" (msr), "a" (val1), "d" (val2))
#define rdmsrl(msr,val) do {unsigned long l__,h__; \
#define rdmsrl(msr,val) do { \
unsigned long l__,h__; \
rdmsr (msr, l__, h__); \
val = l__; \
val |= ((u64)h__<<32); \
} while(0)
static void wrmsrl (u32 msr, u64 val)
static inline void wrmsrl (u32 msr, u64 val)
{
u32 lo, hi;
lo = (u32) val;
hi = val >> 32;
wrmsr (msr, lo, hi);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment