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
nexedi
linux
Commits
e4679712
Commit
e4679712
authored
Jan 12, 2003
by
Patrick Mochel
Committed by
Linus Torvalds
Jan 12, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] cpufreq: sysfs interface update
This updates new cpufreq sysfs code to new rules.
parent
e0594725
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
kernel/cpufreq.c
kernel/cpufreq.c
+5
-4
No files found.
kernel/cpufreq.c
View file @
e4679712
...
...
@@ -152,7 +152,7 @@ static ssize_t show_##file_name \
*/
#define cpufreq_per_cpu_attr_write(file_name, object) \
static ssize_t store_##file_name \
(struct device *dev, const char *buf
)
\
(struct device *dev, const char *buf
, size_t count)
\
{ \
unsigned int ret = -EINVAL; \
struct cpufreq_policy policy; \
...
...
@@ -172,7 +172,7 @@ static ssize_t store_##file_name \
if (ret) \
return ret; \
\
return
strlen(buf);
\
return
count;
\
}
...
...
@@ -205,7 +205,8 @@ static ssize_t show_scaling_governor (struct device *dev, char *buf)
/**
* store_scaling_governor - store policy for the specified CPU
*/
static
ssize_t
store_scaling_governor
(
struct
device
*
dev
,
const
char
*
buf
)
static
ssize_t
store_scaling_governor
(
struct
device
*
dev
,
const
char
*
buf
,
size_t
count
)
{
unsigned
int
ret
=
-
EINVAL
;
char
str_governor
[
16
];
...
...
@@ -229,7 +230,7 @@ static ssize_t store_scaling_governor (struct device *dev, const char *buf)
if
(
ret
)
return
ret
;
return
strlen
(
buf
)
;
return
count
;
}
...
...
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