projects
/
platform
/
adaptation
/
renesas_rcar
/
renesas_kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c49c533
)
[PATCH] x86-64: Use constant instead of raw number in x86_64 ioperm.c
author
Glauber de Oliveira Costa
<gcosta@redhat.com>
Tue, 13 Feb 2007 12:26:22 +0000
(13:26 +0100)
committer
Andi Kleen
<andi@basil.nowhere.org>
Tue, 13 Feb 2007 12:26:22 +0000
(13:26 +0100)
This is a tiny cleanup to increase readability
Signed-off-by: Glauber de Oliveira Costa <gcosta@redhat.com>
Signed-off-by: Andi Kleen <ak@suse.de>
Cc: Andi Kleen <ak@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
arch/x86_64/kernel/ioport.c
patch
|
blob
|
history
diff --git
a/arch/x86_64/kernel/ioport.c
b/arch/x86_64/kernel/ioport.c
index
fe063d3
..
745b1f0
100644
(file)
--- a/
arch/x86_64/kernel/ioport.c
+++ b/
arch/x86_64/kernel/ioport.c
@@
-114,6
+114,6
@@
asmlinkage long sys_iopl(unsigned int level, struct pt_regs *regs)
if (!capable(CAP_SYS_RAWIO))
return -EPERM;
}
- regs->eflags = (regs->eflags &~
0x3000U
L) | (level << 12);
+ regs->eflags = (regs->eflags &~
X86_EFLAGS_IOP
L) | (level << 12);
return 0;
}