diff options
author | Helge Deller | 2019-04-02 12:17:08 +0200 |
---|---|---|
committer | Helge Deller | 2019-05-03 23:47:39 +0200 |
commit | b438749044356dd1329c45e9b5a9377b6ea13eb2 (patch) | |
tree | 1753b07d209a44f7a0e6b2fb2d0a6c1abaf5523f /drivers/parisc/led.c | |
parent | f30bfa6d29da64a302a99b20ff79df8088c61836 (diff) |
parisc: Skip registering LED when running in QEMU
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+
Diffstat (limited to 'drivers/parisc/led.c')
-rw-r--r-- | drivers/parisc/led.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/parisc/led.c b/drivers/parisc/led.c index 0c6e8b44b4ed..c60b465f6fe4 100644 --- a/drivers/parisc/led.c +++ b/drivers/parisc/led.c @@ -568,6 +568,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); |