Skip to content

Commit

Permalink
parisc: Skip registering LED when running in QEMU
Browse files Browse the repository at this point in the history
No need to spend CPU cycles when we run on QEMU.

Signed-off-by: Helge Deller <[email protected]>
CC: [email protected] # v4.9+
  • Loading branch information
hdeller committed May 3, 2019
1 parent f30bfa6 commit b438749
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/parisc/led.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit b438749

Please sign in to comment.