[PATCH 17/17] ARM: use new LEDS CPU trigger stub to replace old one

Arnd Bergmann arnd at arndb.de
Wed Jul 6 10:26:44 EDT 2011


On Wednesday 06 July 2011, Bryan Wu wrote:
> 
>  #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



More information about the linux-arm-kernel mailing list