diff options
author | Elyes HAOUAS <ehaouas@noos.fr> | 2016-09-01 19:01:41 +0200 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2016-09-05 12:28:32 +0200 |
commit | 8ffd050cf0ecfbeb647cf985c60f67c24faab181 (patch) | |
tree | b7a507607439e7dcd113665335a0bd827f067c49 /src/include/cpu/x86/msr.h | |
parent | a15dde0719be9f580038a6df32ff18fb017886bf (diff) |
src/include: Improve code formatting
Change-Id: Ic8ffd26e61c0c3f27872699bb6aa9c39204155b7
Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr>
Reviewed-on: https://review.coreboot.org/16390
Tested-by: build bot (Jenkins)
Reviewed-by: Martin Roth <martinroth@google.com>
Reviewed-by: Patrick Georgi <pgeorgi@google.com>
Diffstat (limited to 'src/include/cpu/x86/msr.h')
-rw-r--r-- | src/include/cpu/x86/msr.h | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/include/cpu/x86/msr.h b/src/include/cpu/x86/msr.h index db35ef14eb..f830f3ba3b 100644 --- a/src/include/cpu/x86/msr.h +++ b/src/include/cpu/x86/msr.h @@ -25,8 +25,8 @@ typedef struct msr_struct typedef struct msrinit_struct { - unsigned index; - msr_t msr; + unsigned index; + msr_t msr; } msrinit_t; #if IS_ENABLED(CONFIG_SOC_SETS_MSRS) @@ -39,8 +39,7 @@ static inline __attribute__((always_inline)) msr_t rdmsr(unsigned index) return soc_msr_read(index); } -static inline __attribute__((always_inline)) void wrmsr(unsigned index, - msr_t msr) +static inline __attribute__((always_inline)) void wrmsr(unsigned index, msr_t msr) { soc_msr_write(index, msr); } @@ -67,8 +66,7 @@ static inline __attribute__((always_inline)) msr_t rdmsr(unsigned index) return result; } -static inline __attribute__((always_inline)) void wrmsr(unsigned index, - msr_t msr) +static inline __attribute__((always_inline)) void wrmsr(unsigned index, msr_t msr) { __asm__ __volatile__ ( "wrmsr" |