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
2c7a8bd6
Commit
2c7a8bd6
authored
Jan 13, 2020
by
Rafael J. Wysocki
Browse files
Options
Browse Files
Download
Plain Diff
Merge back cpufreq fixes for v5.6.
parents
c936069f
80e8b1e5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
drivers/cpufreq/cppc_cpufreq.c
drivers/cpufreq/cppc_cpufreq.c
+6
-2
No files found.
drivers/cpufreq/cppc_cpufreq.c
View file @
2c7a8bd6
...
@@ -39,7 +39,7 @@
...
@@ -39,7 +39,7 @@
static
struct
cppc_cpudata
**
all_cpu_data
;
static
struct
cppc_cpudata
**
all_cpu_data
;
struct
cppc_workaround_oem_info
{
struct
cppc_workaround_oem_info
{
char
oem_id
[
ACPI_OEM_ID_SIZE
+
1
];
char
oem_id
[
ACPI_OEM_ID_SIZE
+
1
];
char
oem_table_id
[
ACPI_OEM_TABLE_ID_SIZE
+
1
];
char
oem_table_id
[
ACPI_OEM_TABLE_ID_SIZE
+
1
];
u32
oem_revision
;
u32
oem_revision
;
};
};
...
@@ -93,9 +93,13 @@ static void cppc_check_hisi_workaround(void)
...
@@ -93,9 +93,13 @@ static void cppc_check_hisi_workaround(void)
for
(
i
=
0
;
i
<
ARRAY_SIZE
(
wa_info
);
i
++
)
{
for
(
i
=
0
;
i
<
ARRAY_SIZE
(
wa_info
);
i
++
)
{
if
(
!
memcmp
(
wa_info
[
i
].
oem_id
,
tbl
->
oem_id
,
ACPI_OEM_ID_SIZE
)
&&
if
(
!
memcmp
(
wa_info
[
i
].
oem_id
,
tbl
->
oem_id
,
ACPI_OEM_ID_SIZE
)
&&
!
memcmp
(
wa_info
[
i
].
oem_table_id
,
tbl
->
oem_table_id
,
ACPI_OEM_TABLE_ID_SIZE
)
&&
!
memcmp
(
wa_info
[
i
].
oem_table_id
,
tbl
->
oem_table_id
,
ACPI_OEM_TABLE_ID_SIZE
)
&&
wa_info
[
i
].
oem_revision
==
tbl
->
oem_revision
)
wa_info
[
i
].
oem_revision
==
tbl
->
oem_revision
)
{
apply_hisi_workaround
=
true
;
apply_hisi_workaround
=
true
;
break
;
}
}
}
acpi_put_table
(
tbl
);
}
}
/* Callback function used to retrieve the max frequency from DMI */
/* Callback function used to retrieve the max frequency from DMI */
...
...
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