diff options
Diffstat (limited to 'include/linux/leds.h')
| -rw-r--r-- | include/linux/leds.h | 16 | 
1 files changed, 16 insertions, 0 deletions
diff --git a/include/linux/leds.h b/include/linux/leds.h index 39eee41d8c6..cd545580e06 100644 --- a/include/linux/leds.h +++ b/include/linux/leds.h @@ -212,4 +212,20 @@ struct gpio_led_platform_data {  struct platform_device *gpio_led_register_device(  		int id, const struct gpio_led_platform_data *pdata); +enum cpu_led_event { +	CPU_LED_IDLE_START,	/* CPU enters idle */ +	CPU_LED_IDLE_END,	/* CPU idle ends */ +	CPU_LED_START,		/* Machine starts, especially resume */ +	CPU_LED_STOP,		/* Machine stops, especially suspend */ +	CPU_LED_HALTED,		/* Machine shutdown */ +}; +#ifdef CONFIG_LEDS_TRIGGER_CPU +extern void ledtrig_cpu(enum cpu_led_event evt); +#else +static inline void ledtrig_cpu(enum cpu_led_event evt) +{ +	return; +} +#endif +  #endif		/* __LINUX_LEDS_H_INCLUDED */  |