Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 698e1641 authored by Herton Ronaldo Krzesinski's avatar Herton Ronaldo Krzesinski Committed by Matthew Garrett
Browse files

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: default avatarHerton Ronaldo Krzesinski <herton@mandriva.com.br>
Signed-off-by: default avatarMatthew Garrett <mjg@redhat.com>
Acked-by: default avatarThadeu Lima de Souza Cascardo <cascardo@holoscopio.com>
parent 58f6425e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment