diff options
Diffstat (limited to 'arch/blackfin/kernel/cplbinfo.c')
| -rw-r--r-- | arch/blackfin/kernel/cplbinfo.c | 13 | 
1 files changed, 8 insertions, 5 deletions
diff --git a/arch/blackfin/kernel/cplbinfo.c b/arch/blackfin/kernel/cplbinfo.c index 0bdaa517a50..5b80d59e66e 100644 --- a/arch/blackfin/kernel/cplbinfo.c +++ b/arch/blackfin/kernel/cplbinfo.c @@ -17,8 +17,13 @@  #include <asm/cplbinit.h>  #include <asm/blackfin.h> -static char const page_strtbl[][3] = { "1K", "4K", "1M", "4M" }; -#define page(flags)    (((flags) & 0x30000) >> 16) +static char const page_strtbl[][4] = { +	"1K", "4K", "1M", "4M", +#ifdef CONFIG_BF60x +	"16K", "64K", "16M", "64M", +#endif +}; +#define page(flags)    (((flags) & 0x70000) >> 16)  #define strpage(flags) page_strtbl[page(flags)]  struct cplbinfo_data { @@ -116,14 +121,12 @@ static const struct seq_operations cplbinfo_sops = {  static int cplbinfo_open(struct inode *inode, struct file *file)  { -	struct proc_dir_entry *pde = PDE(file->f_path.dentry->d_inode);  	char cplb_type; -	unsigned int cpu; +	unsigned int cpu = (unsigned long)PDE_DATA(file_inode(file));  	int ret;  	struct seq_file *m;  	struct cplbinfo_data *cdata; -	cpu = (unsigned int)pde->data;  	cplb_type = cpu & CPLBINFO_DCPLB_FLAG ? 'D' : 'I';  	cpu &= ~CPLBINFO_DCPLB_FLAG;  |