Re: [tip:x86/mtrr] x86: more MTRR debug printouts

From: Ingo Molnar
Date: Sat Mar 14 2009 - 07:31:00 EST



* Ingo Molnar <mingo@xxxxxxx> wrote:

> * Yinghai Lu <yinghai@xxxxxxxxxx> wrote:
>
> > + preempt_disable();
> > + cpu = smp_processor_id();
>
> in such cases it's better to use a get_cpu() / put_cpu()
> construct.

i've changed the code to do that.

Ingo
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/