aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/trace-event-scripting.c
diff options
context:
space:
mode:
authorHerton Ronaldo Krzesinski <[email protected]>2010-11-30 16:30:43 -0200
committerMatthew Garrett <[email protected]>2011-01-07 17:03:41 -0500
commit698e1641a37f833dd26ee2fde5eed426cd97880b (patch)
treec0b6bc8bb6e39e813cf3711c7a4fd95d899c4a9f /tools/perf/util/trace-event-scripting.c
parent58f6425eb92f54943878b0b3f9c1e51f99c2cb72 (diff)
classmate-laptop: little optimization for cmpc_rfkill_block
We don't need to call bios/acpi (cmpc_set_rfkill_wlan) if the blocked state is already set to the same value (little optimization). This can happen for example if we initialize the module with same initial hardware state (rfkill core always call cmpc_rfkill_block on initialization here). Also GWRI method only accepts 0 or 1 for setting rfkill block, as can be seen on AML code from acpidump->DSDT from a classmate sample I have, so should be fine setting state only to 0 or 1 directly. Signed-off-by: Herton Ronaldo Krzesinski <[email protected]> Signed-off-by: Matthew Garrett <[email protected]> Acked-by: Thadeu Lima de Souza Cascardo <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions