Re: [PATCH v2] x86: Early-boot serial I/O support

From: Cyrill Gorcunov
Date: Sat Jul 10 2010 - 17:56:06 EST


On Sat, Jul 10, 2010 at 02:37:01PM -0700, H. Peter Anvin wrote:
> On 07/10/2010 02:07 PM, Cyrill Gorcunov wrote:
> > On Sat, Jul 10, 2010 at 10:40:20PM +0300, Pekka Enberg wrote:
> >> This patch adds serial I/O support to very early boot printf(). It's useful for
> >> debugging boot code when running Linux under KVM, for example. The actual code
> >>
> >> +#define cpu_relax() asm volatile("rep; nop" ::: "memory")
> >> +
>
> We don't need "memory" here since the early boot environment is
> single-threaded.
>
> -hpa
>

I rather wonder -- can't we use cpu_relax() from processor.h? Or there
is some type conflicts?

-- Cyrill
--
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/