summaryrefslogtreecommitdiffstats
path: root/arch/i386/kernel/mtrr.c
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2000-01-29 01:41:54 +0000
committerRalf Baechle <ralf@linux-mips.org>2000-01-29 01:41:54 +0000
commitf969d69ba9f952e5bdd38278e25e26a3e4a61a70 (patch)
treeb3530d803df59d726afaabebc6626987dee1ca05 /arch/i386/kernel/mtrr.c
parenta10ce7ef2066b455d69187643ddf2073bfc4db24 (diff)
Merge with 2.3.27.
Diffstat (limited to 'arch/i386/kernel/mtrr.c')
-rw-r--r--arch/i386/kernel/mtrr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/i386/kernel/mtrr.c b/arch/i386/kernel/mtrr.c
index f55e86b61..9e612451c 100644
--- a/arch/i386/kernel/mtrr.c
+++ b/arch/i386/kernel/mtrr.c
@@ -1204,7 +1204,7 @@ int mtrr_add (unsigned long base, unsigned long size, unsigned int type,
i = (*get_free_region) (base, size);
if (i < 0)
{
- spin_unlock (&main_lock);
+ up(&main_lock);
printk ("mtrr: no more MTRRs available\n");
return i;
}
@@ -1516,7 +1516,7 @@ static struct inode_operations proc_mtrr_inode_operations = {
};
static struct proc_dir_entry proc_root_mtrr = {
- PROC_MTRR, 4, "mtrr",
+ 0, 4, "mtrr",
S_IFREG | S_IWUSR | S_IRUGO, 1, 0, 0,
0, &proc_mtrr_inode_operations
};