Messages in this thread Patch in this message |  | | | Subject | [PATCH 8/9 -tip] x86: mtrr/state.c fix trivial style problems | | From | Jaswinder Singh Rajput <> | | Date | Sat, 04 Jul 2009 07:54:53 +0530 |
Fix :
WARNING: Use #include <linux/io.h> instead of <asm/io.h> WARNING: line over 80 characters X 4
Signed-off-by: Jaswinder Singh Rajput <jaswinderrajput@gmail.com> --- arch/x86/kernel/cpu/mtrr/state.c | 20 +++++++++++++------- 1 files changed, 13 insertions(+), 7 deletions(-) diff --git a/arch/x86/kernel/cpu/mtrr/state.c b/arch/x86/kernel/cpu/mtrr/state.c index 1f5fb15..dcd00f5 100644 --- a/arch/x86/kernel/cpu/mtrr/state.c +++ b/arch/x86/kernel/cpu/mtrr/state.c @@ -1,13 +1,12 @@ #include <linux/mm.h> #include <linux/init.h> -#include <asm/io.h> +#include <linux/io.h> #include <asm/mtrr.h> #include <asm/msr.h> #include <asm/processor-cyrix.h> #include <asm/processor-flags.h> #include "mtrr.h" - /* Put the processor into a state where MTRRs can be safely set */ void set_mtrr_prepare_save(struct set_mtrr_context *ctxt) { @@ -35,9 +34,13 @@ void set_mtrr_prepare_save(struct set_mtrr_context *ctxt) if (use_intel()) /* Save MTRR state */ - rdmsr(MSR_MTRRdefType, ctxt->deftype_lo, ctxt->deftype_hi); + rdmsr(MSR_MTRRdefType, ctxt->deftype_lo, + ctxt->deftype_hi); else - /* Cyrix ARRs - everything else were excluded at the top */ + /* + * Cyrix ARRs - + * everything else were excluded at the top + */ ctxt->ccr3 = getCx86(CX86_CCR3); } } @@ -64,9 +67,13 @@ void set_mtrr_done(struct set_mtrr_context *ctxt) /* Restore MTRRdefType */ if (use_intel()) /* Intel (P6) standard MTRRs */ - mtrr_wrmsr(MSR_MTRRdefType, ctxt->deftype_lo, ctxt->deftype_hi); + mtrr_wrmsr(MSR_MTRRdefType, ctxt->deftype_lo, + ctxt->deftype_hi); else - /* Cyrix ARRs - everything else was excluded at the top */ + /* + * Cyrix ARRs - + * everything else was excluded at the top + */ setCx86(CX86_CCR3, ctxt->ccr3); /* Enable caches */ @@ -79,4 +86,3 @@ void set_mtrr_done(struct set_mtrr_context *ctxt) /* Re-enable interrupts locally (if enabled previously) */ local_irq_restore(ctxt->flags); } - -- 1.6.0.6
|  |