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
075c3c48
Commit
075c3c48
authored
Feb 28, 2022
by
Rafael J. Wysocki
Browse files
Options
Browse Files
Download
Plain Diff
Merge back cpufreq changes for v5.18.
parents
c5eb92f5
7ddf5e37
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
8 deletions
+8
-8
drivers/cpufreq/cpufreq_governor_attr_set.c
drivers/cpufreq/cpufreq_governor_attr_set.c
+0
-5
drivers/cpufreq/longhaul.c
drivers/cpufreq/longhaul.c
+2
-2
include/linux/cpufreq.h
include/linux/cpufreq.h
+5
-0
kernel/sched/cpufreq_schedutil.c
kernel/sched/cpufreq_schedutil.c
+1
-1
No files found.
drivers/cpufreq/cpufreq_governor_attr_set.c
View file @
075c3c48
...
...
@@ -8,11 +8,6 @@
#include "cpufreq_governor.h"
static
inline
struct
gov_attr_set
*
to_gov_attr_set
(
struct
kobject
*
kobj
)
{
return
container_of
(
kobj
,
struct
gov_attr_set
,
kobj
);
}
static
inline
struct
governor_attr
*
to_gov_attr
(
struct
attribute
*
attr
)
{
return
container_of
(
attr
,
struct
governor_attr
,
attr
);
...
...
drivers/cpufreq/longhaul.c
View file @
075c3c48
...
...
@@ -668,9 +668,9 @@ static acpi_status longhaul_walk_callback(acpi_handle obj_handle,
u32
nesting_level
,
void
*
context
,
void
**
return_value
)
{
struct
acpi_device
*
d
;
struct
acpi_device
*
d
=
acpi_fetch_acpi_dev
(
obj_handle
)
;
if
(
acpi_bus_get_device
(
obj_handle
,
&
d
)
)
if
(
!
d
)
return
0
;
*
return_value
=
acpi_driver_data
(
d
);
...
...
include/linux/cpufreq.h
View file @
075c3c48
...
...
@@ -661,6 +661,11 @@ struct gov_attr_set {
/* sysfs ops for cpufreq governors */
extern
const
struct
sysfs_ops
governor_sysfs_ops
;
static
inline
struct
gov_attr_set
*
to_gov_attr_set
(
struct
kobject
*
kobj
)
{
return
container_of
(
kobj
,
struct
gov_attr_set
,
kobj
);
}
void
gov_attr_set_init
(
struct
gov_attr_set
*
attr_set
,
struct
list_head
*
list_node
);
void
gov_attr_set_get
(
struct
gov_attr_set
*
attr_set
,
struct
list_head
*
list_node
);
unsigned
int
gov_attr_set_put
(
struct
gov_attr_set
*
attr_set
,
struct
list_head
*
list_node
);
...
...
kernel/sched/cpufreq_schedutil.c
View file @
075c3c48
...
...
@@ -539,7 +539,7 @@ ATTRIBUTE_GROUPS(sugov);
static
void
sugov_tunables_free
(
struct
kobject
*
kobj
)
{
struct
gov_attr_set
*
attr_set
=
container_of
(
kobj
,
struct
gov_attr_set
,
kobj
);
struct
gov_attr_set
*
attr_set
=
to_gov_attr_set
(
kobj
);
kfree
(
to_sugov_tunables
(
attr_set
));
}
...
...
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