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
2c3b4f89
Commit
2c3b4f89
authored
Jul 09, 2003
by
Dave Jones
Committed by
Dave Jones
Jul 09, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[CPUFREQ] Misc cleanups.
parent
e127a373
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
8 deletions
+6
-8
drivers/cpufreq/Makefile
drivers/cpufreq/Makefile
+5
-2
include/linux/cpufreq.h
include/linux/cpufreq.h
+0
-4
kernel/cpufreq.c
kernel/cpufreq.c
+1
-2
No files found.
drivers/cpufreq/Makefile
View file @
2c3b4f89
#CPUfreq governors and cross-arch helpers
# CPUfreq governors
obj-$(CONFIG_CPU_FREQ_GOV_USERSPACE)
+=
userspace.o
# CPUfreq cross-arch helpers
obj-$(CONFIG_CPU_FREQ_TABLE)
+=
freq_table.o
obj-$(CONFIG_CPU_FREQ_TABLE)
+=
freq_table.o
obj-$(CONFIG_CPU_FREQ_PROC_INTF)
+=
proc_intf.o
obj-$(CONFIG_CPU_FREQ_PROC_INTF)
+=
proc_intf.o
obj-$(CONFIG_CPU_FREQ_GOV_USERSPACE)
+=
userspace.o
include/linux/cpufreq.h
View file @
2c3b4f89
...
@@ -306,8 +306,4 @@ void cpufreq_frequency_table_put_attr(unsigned int cpu);
...
@@ -306,8 +306,4 @@ void cpufreq_frequency_table_put_attr(unsigned int cpu);
#endif
/* CONFIG_CPU_FREQ_TABLE */
#endif
/* CONFIG_CPU_FREQ_TABLE */
/* Currently exported only for the proc interface, remove when that goes */
extern
struct
cpufreq_driver
*
cpufreq_driver
;
#endif
/* _LINUX_CPUFREQ_H */
#endif
/* _LINUX_CPUFREQ_H */
kernel/cpufreq.c
View file @
2c3b4f89
...
@@ -352,13 +352,12 @@ static int cpufreq_add_dev (struct sys_device * sys_dev)
...
@@ -352,13 +352,12 @@ static int cpufreq_add_dev (struct sys_device * sys_dev)
if
(
ret
)
if
(
ret
)
goto
out
;
goto
out
;
/* set up files for this cpu device */
drv_attr
=
cpufreq_driver
->
attr
;
drv_attr
=
cpufreq_driver
->
attr
;
while
((
drv_attr
)
&&
(
*
drv_attr
))
{
while
((
drv_attr
)
&&
(
*
drv_attr
))
{
sysfs_create_file
(
&
policy
->
kobj
,
&
((
*
drv_attr
)
->
attr
));
sysfs_create_file
(
&
policy
->
kobj
,
&
((
*
drv_attr
)
->
attr
));
drv_attr
++
;
drv_attr
++
;
}
}
/* set up files for this cpu device */
/* set default policy */
/* set default policy */
ret
=
cpufreq_set_policy
(
&
new_policy
);
ret
=
cpufreq_set_policy
(
&
new_policy
);
...
...
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