Re: early_printk accessing __log_buf

From: Robin Getz
Date: Mon Jul 23 2007 - 18:12:24 EST


On Mon 23 Jul 2007 16:15, Andrew Morton pondered:
> This code would be
> simpler if it did not attempt to read more than one char at a time. It
> will be plenty fast enough.

When systems have NMI kick off due to power failure, and you want to grab the
log buffer to write it to flash before power really dies - every cycle
counts.

A single function which does the copy as a loop (existing) is going to be much
faster than the overhead of 1024 function calls to copy the last k.

> The magical interpretation of len isn't very nice.

There are lots of places in the kernel which have magic in them :)

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