]> Pileus Git - ~andy/linux/commit
rfkill: prevent unnecessary event generation
authorVitaly Wool <vitaly.wool@sonymobile.com>
Thu, 6 Sep 2012 14:06:52 +0000 (16:06 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 24 Sep 2012 08:35:54 +0000 (10:35 +0200)
commiteab48345c2b2d791159aaac4a77000baa8dbc1ae
tree7ea44540a71f3dd482441b458ae4127f055a14c3
parentc6f219dc83fbb30c8426fcc7850c28d9d33dee44
rfkill: prevent unnecessary event generation

Prevent unnecessary rfkill event generation when the state has
not actually changed. These events have to be delivered to
relevant userspace processes, causing these processes to wake
up and do something while they could as well have slept. This
obviously results in more CPU usage, longer time-to-sleep-again
and therefore higher power consumption.

Signed-off-by: Vitaly Wool <vitalywool@gmail.com>
Signed-off-by: Mykyta Iziumtsev <nikita.izyumtsev@gmail.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/rfkill/core.c