aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/linux/leds.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/include/linux/leds.h b/include/linux/leds.h
index 3aade1d8f410..c6f8dad2ceb0 100644
--- a/include/linux/leds.h
+++ b/include/linux/leds.h
@@ -237,4 +237,20 @@ struct gpio_led_platform_data {
237struct platform_device *gpio_led_register_device( 237struct platform_device *gpio_led_register_device(
238 int id, const struct gpio_led_platform_data *pdata); 238 int id, const struct gpio_led_platform_data *pdata);
239 239
240enum cpu_led_event {
241 CPU_LED_IDLE_START, /* CPU enters idle */
242 CPU_LED_IDLE_END, /* CPU idle ends */
243 CPU_LED_START, /* Machine starts, especially resume */
244 CPU_LED_STOP, /* Machine stops, especially suspend */
245 CPU_LED_HALTED, /* Machine shutdown */
246};
247#ifdef CONFIG_LEDS_TRIGGER_CPU
248extern void ledtrig_cpu(enum cpu_led_event evt);
249#else
250static inline void ledtrig_cpu(enum cpu_led_event evt)
251{
252 return;
253}
254#endif
255
240#endif /* __LINUX_LEDS_H_INCLUDED */ 256#endif /* __LINUX_LEDS_H_INCLUDED */