Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 149306
b: refs/heads/master
c: da055eb
h: refs/heads/master
v: v3
  • Loading branch information
Catalin Marinas committed May 30, 2009
1 parent 75cf5b2 commit 62b0ea3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ff3042fb6f1a0f6faf527390a8a943a3e4296741
refs/heads/master: da055eb52ec067d51dc08c7e86baf92dd5c01599
7 changes: 4 additions & 3 deletions trunk/arch/arm/mach-realview/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -578,21 +578,22 @@ void realview_leds_event(led_event_t ledevt)
{
unsigned long flags;
u32 val;
u32 led = 1 << smp_processor_id();

local_irq_save(flags);
val = readl(VA_LEDS_BASE);

switch (ledevt) {
case led_idle_start:
val = val & ~REALVIEW_SYS_LED0;
val = val & ~led;
break;

case led_idle_end:
val = val | REALVIEW_SYS_LED0;
val = val | led;
break;

case led_timer:
val = val ^ REALVIEW_SYS_LED1;
val = val ^ REALVIEW_SYS_LED7;
break;

case led_halted:
Expand Down

0 comments on commit 62b0ea3

Please sign in to comment.