aboutsummaryrefslogtreecommitdiffstats
path: root/arch/ppc64/kernel/cputable.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/ppc64/kernel/cputable.c')
-rw-r--r--arch/ppc64/kernel/cputable.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/arch/ppc64/kernel/cputable.c b/arch/ppc64/kernel/cputable.c
index c022ec4d1e91..a18aa383f120 100644
--- a/arch/ppc64/kernel/cputable.c
+++ b/arch/ppc64/kernel/cputable.c
@@ -19,6 +19,7 @@
19#include <linux/init.h> 19#include <linux/init.h>
20#include <linux/module.h> 20#include <linux/module.h>
21 21
22#include <asm/oprofile_impl.h>
22#include <asm/cputable.h> 23#include <asm/cputable.h>
23 24
24struct cpu_spec* cur_cpu_spec = NULL; 25struct cpu_spec* cur_cpu_spec = NULL;
@@ -61,6 +62,7 @@ struct cpu_spec cpu_specs[] = {
61 .num_pmcs = 8, 62 .num_pmcs = 8,
62 .cpu_setup = __setup_cpu_power3, 63 .cpu_setup = __setup_cpu_power3,
63 .oprofile_cpu_type = "ppc64/power3", 64 .oprofile_cpu_type = "ppc64/power3",
65 .oprofile_model = &op_model_rs64,
64 }, 66 },
65 { /* Power3+ */ 67 { /* Power3+ */
66 .pvr_mask = 0xffff0000, 68 .pvr_mask = 0xffff0000,
@@ -74,6 +76,7 @@ struct cpu_spec cpu_specs[] = {
74 .num_pmcs = 8, 76 .num_pmcs = 8,
75 .cpu_setup = __setup_cpu_power3, 77 .cpu_setup = __setup_cpu_power3,
76 .oprofile_cpu_type = "ppc64/power3", 78 .oprofile_cpu_type = "ppc64/power3",
79 .oprofile_model = &op_model_rs64,
77 }, 80 },
78 { /* Northstar */ 81 { /* Northstar */
79 .pvr_mask = 0xffff0000, 82 .pvr_mask = 0xffff0000,
@@ -88,6 +91,7 @@ struct cpu_spec cpu_specs[] = {
88 .num_pmcs = 8, 91 .num_pmcs = 8,
89 .cpu_setup = __setup_cpu_power3, 92 .cpu_setup = __setup_cpu_power3,
90 .oprofile_cpu_type = "ppc64/rs64", 93 .oprofile_cpu_type = "ppc64/rs64",
94 .oprofile_model = &op_model_rs64,
91 }, 95 },
92 { /* Pulsar */ 96 { /* Pulsar */
93 .pvr_mask = 0xffff0000, 97 .pvr_mask = 0xffff0000,
@@ -102,6 +106,7 @@ struct cpu_spec cpu_specs[] = {
102 .num_pmcs = 8, 106 .num_pmcs = 8,
103 .cpu_setup = __setup_cpu_power3, 107 .cpu_setup = __setup_cpu_power3,
104 .oprofile_cpu_type = "ppc64/rs64", 108 .oprofile_cpu_type = "ppc64/rs64",
109 .oprofile_model = &op_model_rs64,
105 }, 110 },
106 { /* I-star */ 111 { /* I-star */
107 .pvr_mask = 0xffff0000, 112 .pvr_mask = 0xffff0000,
@@ -116,6 +121,7 @@ struct cpu_spec cpu_specs[] = {
116 .num_pmcs = 8, 121 .num_pmcs = 8,
117 .cpu_setup = __setup_cpu_power3, 122 .cpu_setup = __setup_cpu_power3,
118 .oprofile_cpu_type = "ppc64/rs64", 123 .oprofile_cpu_type = "ppc64/rs64",
124 .oprofile_model = &op_model_rs64,
119 }, 125 },
120 { /* S-star */ 126 { /* S-star */
121 .pvr_mask = 0xffff0000, 127 .pvr_mask = 0xffff0000,
@@ -130,6 +136,7 @@ struct cpu_spec cpu_specs[] = {
130 .num_pmcs = 8, 136 .num_pmcs = 8,
131 .cpu_setup = __setup_cpu_power3, 137 .cpu_setup = __setup_cpu_power3,
132 .oprofile_cpu_type = "ppc64/rs64", 138 .oprofile_cpu_type = "ppc64/rs64",
139 .oprofile_model = &op_model_rs64,
133 }, 140 },
134 { /* Power4 */ 141 { /* Power4 */
135 .pvr_mask = 0xffff0000, 142 .pvr_mask = 0xffff0000,
@@ -144,6 +151,7 @@ struct cpu_spec cpu_specs[] = {
144 .num_pmcs = 8, 151 .num_pmcs = 8,
145 .cpu_setup = __setup_cpu_power4, 152 .cpu_setup = __setup_cpu_power4,
146 .oprofile_cpu_type = "ppc64/power4", 153 .oprofile_cpu_type = "ppc64/power4",
154 .oprofile_model = &op_model_rs64,
147 }, 155 },
148 { /* Power4+ */ 156 { /* Power4+ */
149 .pvr_mask = 0xffff0000, 157 .pvr_mask = 0xffff0000,
@@ -158,6 +166,7 @@ struct cpu_spec cpu_specs[] = {
158 .num_pmcs = 8, 166 .num_pmcs = 8,
159 .cpu_setup = __setup_cpu_power4, 167 .cpu_setup = __setup_cpu_power4,
160 .oprofile_cpu_type = "ppc64/power4", 168 .oprofile_cpu_type = "ppc64/power4",
169 .oprofile_model = &op_model_power4,
161 }, 170 },
162 { /* PPC970 */ 171 { /* PPC970 */
163 .pvr_mask = 0xffff0000, 172 .pvr_mask = 0xffff0000,
@@ -174,6 +183,7 @@ struct cpu_spec cpu_specs[] = {
174 .num_pmcs = 8, 183 .num_pmcs = 8,
175 .cpu_setup = __setup_cpu_ppc970, 184 .cpu_setup = __setup_cpu_ppc970,
176 .oprofile_cpu_type = "ppc64/970", 185 .oprofile_cpu_type = "ppc64/970",
186 .oprofile_model = &op_model_power4,
177 }, 187 },
178 { /* PPC970FX */ 188 { /* PPC970FX */
179 .pvr_mask = 0xffff0000, 189 .pvr_mask = 0xffff0000,
@@ -190,6 +200,7 @@ struct cpu_spec cpu_specs[] = {
190 .num_pmcs = 8, 200 .num_pmcs = 8,
191 .cpu_setup = __setup_cpu_ppc970, 201 .cpu_setup = __setup_cpu_ppc970,
192 .oprofile_cpu_type = "ppc64/970", 202 .oprofile_cpu_type = "ppc64/970",
203 .oprofile_model = &op_model_power4,
193 }, 204 },
194 { /* PPC970MP */ 205 { /* PPC970MP */
195 .pvr_mask = 0xffff0000, 206 .pvr_mask = 0xffff0000,
@@ -205,6 +216,7 @@ struct cpu_spec cpu_specs[] = {
205 .dcache_bsize = 128, 216 .dcache_bsize = 128,
206 .cpu_setup = __setup_cpu_ppc970, 217 .cpu_setup = __setup_cpu_ppc970,
207 .oprofile_cpu_type = "ppc64/970", 218 .oprofile_cpu_type = "ppc64/970",
219 .oprofile_model = &op_model_power4,
208 }, 220 },
209 { /* Power5 */ 221 { /* Power5 */
210 .pvr_mask = 0xffff0000, 222 .pvr_mask = 0xffff0000,
@@ -221,6 +233,7 @@ struct cpu_spec cpu_specs[] = {
221 .num_pmcs = 6, 233 .num_pmcs = 6,
222 .cpu_setup = __setup_cpu_power4, 234 .cpu_setup = __setup_cpu_power4,
223 .oprofile_cpu_type = "ppc64/power5", 235 .oprofile_cpu_type = "ppc64/power5",
236 .oprofile_model = &op_model_power4,
224 }, 237 },
225 { /* Power5 */ 238 { /* Power5 */
226 .pvr_mask = 0xffff0000, 239 .pvr_mask = 0xffff0000,
@@ -237,6 +250,7 @@ struct cpu_spec cpu_specs[] = {
237 .num_pmcs = 6, 250 .num_pmcs = 6,
238 .cpu_setup = __setup_cpu_power4, 251 .cpu_setup = __setup_cpu_power4,
239 .oprofile_cpu_type = "ppc64/power5", 252 .oprofile_cpu_type = "ppc64/power5",
253 .oprofile_model = &op_model_power4,
240 }, 254 },
241 { /* BE DD1.x */ 255 { /* BE DD1.x */
242 .pvr_mask = 0xffff0000, 256 .pvr_mask = 0xffff0000,