correct way to reduce traffic needed for LED triggering
Hello all,
what is correct way to reduce IO needed for LED blinking? I did it with ieee80211_queue_delayed_work(.., &priv->led-work, msecs_to_jiffird(HZ));
or are there other way to regulate it?
Signature · 2 lines
Regards, Oleksij
Quoted 4 lines · On Wednesday 11 September 2013 20:32:01 Oleksij Rempel wrote:
what is correct way to reduce IO needed for LED blinking? I did it with
ieee80211_queue_delayed_work(.., &priv->led-work, msecs_to_jiffird(HZ));or are there other way to regulate it?
Yes, you can offload some "blinking" overhead by implementing blink_set in led_classdev (aka "priv->led_cdev").
<http://lxr.free-electrons.com/source/include/linux/leds.h#L61>
(Of course, you'll have to add the "blink" routines into the FW. But that shouldn't be much of a problem).
If you need some inspiration: rt2x00, iwlegacy and iwlwifi are using blink_set.
Regards,
Christian