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
4743adaa
Commit
4743adaa
authored
Jun 03, 2004
by
Alexander Viro
Committed by
Linus Torvalds
Jun 03, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] sparse: drivers/cpufreq annotation
drivers/cpufreq annotated
parent
2c37fa03
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
drivers/cpufreq/cpufreq_userspace.c
drivers/cpufreq/cpufreq_userspace.c
+2
-2
No files found.
drivers/cpufreq/cpufreq_userspace.c
View file @
4743adaa
...
@@ -206,7 +206,7 @@ cpufreq_sysctl(ctl_table *table, int __user *name, int nlen,
...
@@ -206,7 +206,7 @@ cpufreq_sysctl(ctl_table *table, int __user *name, int nlen,
if
(
oldlen
!=
sizeof
(
unsigned
int
))
if
(
oldlen
!=
sizeof
(
unsigned
int
))
return
-
EINVAL
;
return
-
EINVAL
;
if
(
put_user
(
cpufreq_get
(
cpu
),
(
unsigned
int
*
)
oldval
)
||
if
(
put_user
(
cpufreq_get
(
cpu
),
(
unsigned
int
__user
*
)
oldval
)
||
put_user
(
sizeof
(
unsigned
int
),
oldlenp
))
put_user
(
sizeof
(
unsigned
int
),
oldlenp
))
return
-
EFAULT
;
return
-
EFAULT
;
}
}
...
@@ -216,7 +216,7 @@ cpufreq_sysctl(ctl_table *table, int __user *name, int nlen,
...
@@ -216,7 +216,7 @@ cpufreq_sysctl(ctl_table *table, int __user *name, int nlen,
if
(
newlen
!=
sizeof
(
unsigned
int
))
if
(
newlen
!=
sizeof
(
unsigned
int
))
return
-
EINVAL
;
return
-
EINVAL
;
if
(
get_user
(
freq
,
(
unsigned
int
*
)
newval
))
if
(
get_user
(
freq
,
(
unsigned
int
__user
*
)
newval
))
return
-
EFAULT
;
return
-
EFAULT
;
cpufreq_set
(
freq
,
cpu
);
cpufreq_set
(
freq
,
cpu
);
...
...
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