serial: avoid fully initializing unused consoles
authorJan Beulich <jbeulich@suse.com>
Tue, 11 Sep 2012 13:51:52 +0000 (15:51 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 11 Sep 2012 13:51:52 +0000 (15:51 +0200)
commit7ae6210ff88e1533770aab49289b9cc9ee52769e
tree4654fd6dc51fbd2c8f32ef849839a1d4e3f090ac
parent322ecbe4ac85d4d9d11f50240ef6e5291fbbf440
serial: avoid fully initializing unused consoles

Defer calling the drivers' post-IRQ initialization functions (generally
doing allocation of transmit buffers) until it is known that the
respective console is actually going to be used.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Keir Fraser <keir@xen.org>
xen/drivers/char/ehci-dbgp.c
xen/drivers/char/serial.c
xen/include/xen/serial.h