diff options
author | Helge Deller <deller@gmx.de> | 2019-04-02 12:17:08 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-05-25 18:23:23 +0200 |
commit | 615260c947b4b1251ad2d0cc626c206b5d9c5c35 (patch) | |
tree | 69230a60e5ca5637223dd5c9e9e22a99ae932059 | |
parent | 9aabffe8c2a608b273f800df4b815d11c3e5f79e (diff) | |
download | linux-rpi3-615260c947b4b1251ad2d0cc626c206b5d9c5c35.tar.gz linux-rpi3-615260c947b4b1251ad2d0cc626c206b5d9c5c35.tar.bz2 linux-rpi3-615260c947b4b1251ad2d0cc626c206b5d9c5c35.zip |
parisc: Skip registering LED when running in QEMU
commit b438749044356dd1329c45e9b5a9377b6ea13eb2 upstream.
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+
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-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); |