diff options
Diffstat (limited to 'arch/blackfin/oprofile/common.c')
-rw-r--r-- | arch/blackfin/oprofile/common.c | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/arch/blackfin/oprofile/common.c b/arch/blackfin/oprofile/common.c index f34795a2e481..cf8f48848d1b 100644 --- a/arch/blackfin/oprofile/common.c +++ b/arch/blackfin/oprofile/common.c | |||
@@ -126,20 +126,12 @@ static int op_bfin_create_files(struct super_block *sb, struct dentry *root) | |||
126 | int __init oprofile_arch_init(struct oprofile_operations *ops) | 126 | int __init oprofile_arch_init(struct oprofile_operations *ops) |
127 | { | 127 | { |
128 | #ifdef CONFIG_HARDWARE_PM | 128 | #ifdef CONFIG_HARDWARE_PM |
129 | unsigned int dspid; | ||
130 | |||
131 | mutex_init(&pfmon_lock); | 129 | mutex_init(&pfmon_lock); |
132 | 130 | ||
133 | dspid = bfin_dspid(); | ||
134 | |||
135 | printk(KERN_INFO "Oprofile got the cpu id is 0x%x. \n", dspid); | ||
136 | 131 | ||
137 | switch (dspid) { | 132 | switch (bfin_read_CHIPID() & CHIPID_MANUFACTURE) { |
138 | case BFIN_533_ID: | 133 | case 0xca: |
139 | model = &op_model_bfin533; | 134 | printk(KERN_INFO "Oprofile: cpu vendor is Analog Devices.\n"); |
140 | model->num_counters = 2; | ||
141 | break; | ||
142 | case BFIN_537_ID: | ||
143 | model = &op_model_bfin533; | 135 | model = &op_model_bfin533; |
144 | model->num_counters = 2; | 136 | model->num_counters = 2; |
145 | break; | 137 | break; |