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
b7e09f03
Commit
b7e09f03
authored
May 20, 2004
by
Andrew Morton
Committed by
Linus Torvalds
May 20, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] msr.c touchups
A few things which Lindent got wrong.
parent
cb90cf3c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
arch/i386/kernel/msr.c
arch/i386/kernel/msr.c
+6
-5
No files found.
arch/i386/kernel/msr.c
View file @
b7e09f03
...
...
@@ -61,7 +61,7 @@ static inline int wrmsr_eio(u32 reg, u32 eax, u32 edx)
return
err
;
}
static
inline
int
rdmsr_eio
(
u32
reg
,
u32
*
eax
,
u32
*
edx
)
static
inline
int
rdmsr_eio
(
u32
reg
,
u32
*
eax
,
u32
*
edx
)
{
int
err
;
...
...
@@ -156,7 +156,7 @@ static inline int do_wrmsr(int cpu, u32 reg, u32 eax, u32 edx)
return
wrmsr_eio
(
reg
,
eax
,
edx
);
}
static
inline
int
do_rdmsr
(
int
cpu
,
u32
reg
,
u32
*
eax
,
u32
*
edx
)
static
inline
int
do_rdmsr
(
int
cpu
,
u32
reg
,
u32
*
eax
,
u32
*
edx
)
{
return
rdmsr_eio
(
reg
,
eax
,
edx
);
}
...
...
@@ -166,6 +166,7 @@ static inline int do_rdmsr(int cpu, u32 reg, u32 * eax, u32 * edx)
static
loff_t
msr_seek
(
struct
file
*
file
,
loff_t
offset
,
int
orig
)
{
loff_t
ret
=
-
EINVAL
;
lock_kernel
();
switch
(
orig
)
{
case
0
:
...
...
@@ -205,8 +206,8 @@ static ssize_t msr_read(struct file *file, char __user * buf,
return
((
char
*
)
tmp
)
-
buf
;
}
static
ssize_t
msr_write
(
struct
file
*
file
,
const
char
__user
*
buf
,
size_t
count
,
loff_t
*
ppos
)
static
ssize_t
msr_write
(
struct
file
*
file
,
const
char
__user
*
buf
,
size_t
count
,
loff_t
*
ppos
)
{
const
u32
*
tmp
=
(
const
u32
*
)
buf
;
u32
data
[
2
];
...
...
@@ -273,6 +274,6 @@ void __exit msr_exit(void)
module_init
(
msr_init
);
module_exit
(
msr_exit
)
MODULE_AUTHOR
(
"H. Peter Anvin <hpa@zytor.com>"
);
MODULE_AUTHOR
(
"H. Peter Anvin <hpa@zytor.com>"
);
MODULE_DESCRIPTION
(
"x86 generic MSR driver"
);
MODULE_LICENSE
(
"GPL"
);
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