* [PATCH] parisc: Skip registering LED when running in QEMU
@ 2019-04-02 10:17 Helge Deller
0 siblings, 0 replies; only message in thread
From: Helge Deller @ 2019-04-02 10:17 UTC (permalink / raw)
To: linux-parisc, James Bottomley, John David Anglin
No need to spend CPU cycles when we run on QEMU.
Signed-off-by: Helge Deller <deller@gmx.de>
CC: stable@vger.kernel.org # v4.9+
diff --git a/drivers/parisc/led.c b/drivers/parisc/led.c
index 0c6e8b44b4ed..3ecd33e765ac 100644
--- a/drivers/parisc/led.c
+++ b/drivers/parisc/led.c
@@ -568,6 +569,9 @@ int __init register_led_driver(int model, unsigned long cmd_reg, unsigned long d
break;
case DISPLAY_MODEL_LASI:
+ /* Skip to register LED in QEMU */
+ if (running_on_qemu)
+ return 1;
LED_DATA_REG = data_reg;
led_func_ptr = led_LASI_driver;
printk(KERN_INFO "LED display at %lx registered\n", LED_DATA_REG);
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2019-04-02 10:17 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-04-02 10:17 [PATCH] parisc: Skip registering LED when running in QEMU Helge Deller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).