Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

check for power state only on x86 and arm64 #214

Closed
wants to merge 1 commit into from

Conversation

arighi
Copy link

@arighi arighi commented Nov 19, 2021

In bbswitch_off() we use acpi_bus_get_device() to determine the power
state, but this feature is only available on x86 and arm64, so make sure
to do this check only on the relevant architectures to prevent build
errors.

Fixes: 5593d95 ("Linux 3.8 compatibility hack")
Signed-off-by: Andrea Righi andrea.righi@canonical.com

bbswitch.c Outdated Show resolved Hide resolved
Copy link

@xnox xnox left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As discussed please switch to #ifdef CONFIG_ACPI.

@arighi arighi force-pushed the arighi branch 2 times, most recently from 103b2ae to 494d20e Compare November 26, 2021 15:20
In bbswitch_off() we use acpi_bus_get_device() to determine the power
state, but this feature is only available if ACPI is enabled in the
kernel, so make sure to do this check only when ACPI is available.

Fixes: 5593d95 ("Linux 3.8 compatibility hack")
Signed-off-by: Dimitri John Ledkov <dimitri.ledkov@canonical.com>
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants