mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-01-19 15:17:02 +07:00
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+
This commit is contained in:
parent
f30bfa6d29
commit
b438749044
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user