diff options
Diffstat (limited to 'arch/blackfin/kernel/cplb-nompu/cplbinfo.c')
| -rw-r--r-- | arch/blackfin/kernel/cplb-nompu/cplbinfo.c | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/arch/blackfin/kernel/cplb-nompu/cplbinfo.c b/arch/blackfin/kernel/cplb-nompu/cplbinfo.c index a4f0b428a34d..1e74f0b97996 100644 --- a/arch/blackfin/kernel/cplb-nompu/cplbinfo.c +++ b/arch/blackfin/kernel/cplb-nompu/cplbinfo.c | |||
| @@ -33,9 +33,7 @@ | |||
| 33 | #include <linux/proc_fs.h> | 33 | #include <linux/proc_fs.h> |
| 34 | #include <linux/uaccess.h> | 34 | #include <linux/uaccess.h> |
| 35 | 35 | ||
| 36 | #include <asm/current.h> | 36 | #include <asm/cplbinit.h> |
| 37 | #include <asm/system.h> | ||
| 38 | #include <asm/cplb.h> | ||
| 39 | #include <asm/blackfin.h> | 37 | #include <asm/blackfin.h> |
| 40 | 38 | ||
| 41 | #define CPLB_I 1 | 39 | #define CPLB_I 1 |
| @@ -174,16 +172,6 @@ static int cplbinfo_read_proc(char *page, char **start, off_t off, | |||
| 174 | return len; | 172 | return len; |
| 175 | } | 173 | } |
| 176 | 174 | ||
| 177 | static int cplbinfo_write_proc(struct file *file, const char __user *buffer, | ||
| 178 | unsigned long count, void *data) | ||
| 179 | { | ||
| 180 | printk(KERN_INFO "Reset the CPLB swap in/out counts.\n"); | ||
| 181 | memset(ipdt_swapcount_table, 0, MAX_SWITCH_I_CPLBS * sizeof(unsigned long)); | ||
| 182 | memset(dpdt_swapcount_table, 0, MAX_SWITCH_D_CPLBS * sizeof(unsigned long)); | ||
| 183 | |||
| 184 | return count; | ||
| 185 | } | ||
| 186 | |||
| 187 | static int __init cplbinfo_init(void) | 175 | static int __init cplbinfo_init(void) |
| 188 | { | 176 | { |
| 189 | struct proc_dir_entry *entry; | 177 | struct proc_dir_entry *entry; |
| @@ -193,7 +181,6 @@ static int __init cplbinfo_init(void) | |||
| 193 | return -ENOMEM; | 181 | return -ENOMEM; |
| 194 | 182 | ||
| 195 | entry->read_proc = cplbinfo_read_proc; | 183 | entry->read_proc = cplbinfo_read_proc; |
| 196 | entry->write_proc = cplbinfo_write_proc; | ||
| 197 | entry->data = NULL; | 184 | entry->data = NULL; |
| 198 | 185 | ||
| 199 | return 0; | 186 | return 0; |
