diff options
| author | Antonio Ospite <[email protected]> | 2011-11-01 00:12:22 +0000 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2011-11-01 00:30:55 +0000 |
| commit | 488bc35bf40df89d37486c1826b178a2fba36ce7 (patch) | |
| tree | 68c665e8b0387b0abbb3c381f3e5ee7293a79f44 /lib/spinlock_debug.c | |
| parent | leds: save the delay values after a successful call to blink_set() (diff) | |
| download | kernel-488bc35bf40df89d37486c1826b178a2fba36ce7.tar.gz kernel-488bc35bf40df89d37486c1826b178a2fba36ce7.zip | |
leds: turn the blink_timer off before starting to blink
Depending on the implementation of the hardware blinking function in
blink_set(), the led can support hardware blinking for some values of
delay_on and delay_off and fall-back to software blinking for some other
values.
Turning off the blink_timer unconditionally before starting to blink
make sure that a sequence like:
OFF
hardware blinking
software blinking
hardware blinking
does not leave the software blinking timer active.
Signed-off-by: Antonio Ospite <[email protected]>
Reviewed-by: Johannes Berg <[email protected]>
Cc: Richard Purdie <[email protected]>
Cc: <[email protected]>
Cc: <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'lib/spinlock_debug.c')
0 files changed, 0 insertions, 0 deletions
