Re: real time hang w/ latency tracing

Ingo Molnar
2007-04-04T08:51:39Z

* Daniel Walker <dwalker@mvista.com> wrote:

> Index: linux-2.6.20/include/linux/serial_core.h
> ===================================================================
> --- linux-2.6.20.orig/include/linux/serial_core.h
> +++ linux-2.6.20/include/linux/serial_core.h
> @@ -213,7 +213,11 @@ struct uart_icount {
> typedef unsigned int __bitwise__ upf_t;
>
> struct uart_port {
> +#ifdef CONFIG_LATENCY_TIMING
> + raw_spinlock_t lock; /* port lock */
> +#else
> spinlock_t lock; /* port lock */
> +#endif

ugh - this will only cause other problems if anyone else is trying to
use the serial code. This needs a cleaner fix - such as not doing that
printk from atomic context.

Ingo