[PATCH 17/17] ARM: use new LEDS CPU trigger stub to replace old one
From: arnd@arndb.de (Arnd Bergmann)
Date: 2011-07-06 14:26:44
On Wednesday 06 July 2011, Bryan Wu wrote:
quoted hunk ↗ jump to hunk
#include <asm/cacheflush.h> -#include <asm/leds.h> #include <asm/processor.h> #include <asm/system.h> #include <asm/thread_notify.h>@@ -183,7 +183,7 @@ void cpu_idle(void) /* endless idle loop with no priority at all */ while (1) { tick_nohz_stop_sched_tick(1); - leds_event(led_idle_start); + ledtrig_cpu(CPU_LED_IDLE_START); while (!need_resched()) { #ifdef CONFIG_HOTPLUG_CPU if (cpu_is_offline(smp_processor_id()))@@ -207,7 +207,7 @@ void cpu_idle(void) local_irq_enable(); } } - leds_event(led_idle_end); + ledtrig_cpu(CPU_LED_IDLE_END); tick_nohz_restart_sched_tick(); preempt_enable_no_resched(); schedule();
Nevermind my previous comment about the place where this is used. I've found it now ;-) Arnd