Commit e7be05c8 authored by Helge Deller's avatar Helge Deller Committed by Greg Kroah-Hartman

parisc: Skip registering LED when running in QEMU

commit b4387490 upstream.

No need to spend CPU cycles when we run on QEMU.
Signed-off-by: default avatarHelge Deller <deller@gmx.de>
CC: stable@vger.kernel.org # v4.9+
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 2e9549e1
...@@ -568,6 +568,9 @@ int __init register_led_driver(int model, unsigned long cmd_reg, unsigned long d ...@@ -568,6 +568,9 @@ int __init register_led_driver(int model, unsigned long cmd_reg, unsigned long d
break; break;
case DISPLAY_MODEL_LASI: case DISPLAY_MODEL_LASI:
/* Skip to register LED in QEMU */
if (running_on_qemu)
return 1;
LED_DATA_REG = data_reg; LED_DATA_REG = data_reg;
led_func_ptr = led_LASI_driver; led_func_ptr = led_LASI_driver;
printk(KERN_INFO "LED display at %lx registered\n", LED_DATA_REG); printk(KERN_INFO "LED display at %lx registered\n", LED_DATA_REG);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment