Search Linux Wireless

Re: correct way to reduce traffic needed for LED triggering

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Wireless Personal Area Network]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux