Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
e1c68713
Commit
e1c68713
authored
Jun 17, 2004
by
Len Brown
Committed by
Len Brown
Jun 17, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[ACPI] fix passive cooling mode indicator (Luming Yu)
http://bugzilla.kernel.org/show_bug.cgi?id=1770
parent
331cc23e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
drivers/acpi/thermal.c
drivers/acpi/thermal.c
+7
-0
No files found.
drivers/acpi/thermal.c
View file @
e1c68713
...
@@ -289,6 +289,13 @@ acpi_thermal_set_cooling_mode (
...
@@ -289,6 +289,13 @@ acpi_thermal_set_cooling_mode (
status
=
acpi_get_handle
(
tz
->
handle
,
"_SCP"
,
&
handle
);
status
=
acpi_get_handle
(
tz
->
handle
,
"_SCP"
,
&
handle
);
if
(
ACPI_FAILURE
(
status
))
{
if
(
ACPI_FAILURE
(
status
))
{
ACPI_DEBUG_PRINT
((
ACPI_DB_INFO
,
"_SCP not present
\n
"
));
ACPI_DEBUG_PRINT
((
ACPI_DB_INFO
,
"_SCP not present
\n
"
));
status
=
acpi_get_handle
(
tz
->
handle
,
"_PSV"
,
&
handle
);
if
(
!
ACPI_FAILURE
(
status
))
{
tz
->
cooling_mode
=
1
;
ACPI_DEBUG_PRINT
((
ACPI_DB_INFO
,
"Cooling mode [%s]
\n
"
,
mode
?
"passive"
:
"active"
));
return_VALUE
(
0
);
}
return_VALUE
(
-
ENODEV
);
return_VALUE
(
-
ENODEV
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment