Do not check for nvidia DSM on igd handle
Just in case the integrated video ACPI handle cannot be found. This is a safety net for those who try bbswitch on an incompatible machine. I do not know any of such machinees, but it looks good.
This commit is contained in:
parent
91814c63f1
commit
3e50c7b118
@ -434,7 +434,7 @@ static int __init bbswitch_init(void) {
|
|||||||
/* At least two Acer machines are known to use the intel ACPI handle
|
/* At least two Acer machines are known to use the intel ACPI handle
|
||||||
* with the legacy nvidia DSM */
|
* with the legacy nvidia DSM */
|
||||||
dis_handle = igd_handle;
|
dis_handle = igd_handle;
|
||||||
if (has_dsm_func(acpi_nvidia_dsm_muid, 0x102, 0x3)) {
|
if (dis_handle && has_dsm_func(acpi_nvidia_dsm_muid, 0x102, 0x3)) {
|
||||||
dsm_type = DSM_TYPE_NVIDIA;
|
dsm_type = DSM_TYPE_NVIDIA;
|
||||||
pr_info("detected a nVidia _DSM function on the"
|
pr_info("detected a nVidia _DSM function on the"
|
||||||
" integrated video card\n");
|
" integrated video card\n");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user