Commit 3b9a22d
drivers: perf: arm_pmuv3: Drop some unused arguments from armv8_pmu_init()
All the PMU init functions want the default sysfs attribute groups, and so
these all call armv8_pmu_init_nogroups() helper, with none of them calling
armv8_pmu_init() directly. When we introduced armv8_pmu_init_nogroups() in
the commit e424b17 ("arm64: perf: Refactor PMU init callbacks")
... we thought that we might need custom attribute groups in future, but
as we evidently haven't, we can remove the option.
This patch folds armv8_pmu_init_nogroups() into armv8_pmu_init(), removing
the ability to use custom attribute groups and simplifying the code.
CC: James Clark <james.clark@arm.com>
Cc: Robin Murphy <robin.murphy@arm.com>
Cc: Will Deacon <will@kernel.org>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: linux-arm-kernel@lists.infradead.org
Cc: linux-kernel@vger.kernel.org
Acked-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Anshuman Khandual <anshuman.khandual@arm.com>
Link: https://lore.kernel.org/r/20231016025436.1368945-1-anshuman.khandual@arm.com
Signed-off-by: Will Deacon <will@kernel.org>1 parent 58f8fc5 commit 3b9a22d
1 file changed
Lines changed: 12 additions & 32 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1187 | 1187 | | |
1188 | 1188 | | |
1189 | 1189 | | |
1190 | | - | |
1191 | | - | |
1192 | | - | |
1193 | | - | |
| 1190 | + | |
1194 | 1191 | | |
1195 | 1192 | | |
1196 | 1193 | | |
| |||
1212 | 1209 | | |
1213 | 1210 | | |
1214 | 1211 | | |
1215 | | - | |
1216 | | - | |
1217 | | - | |
1218 | | - | |
1219 | | - | |
1220 | | - | |
1221 | | - | |
| 1212 | + | |
| 1213 | + | |
| 1214 | + | |
1222 | 1215 | | |
1223 | 1216 | | |
1224 | 1217 | | |
1225 | 1218 | | |
1226 | | - | |
1227 | | - | |
1228 | | - | |
1229 | | - | |
1230 | | - | |
1231 | | - | |
1232 | 1219 | | |
1233 | 1220 | | |
1234 | 1221 | | |
1235 | | - | |
| 1222 | + | |
1236 | 1223 | | |
1237 | 1224 | | |
1238 | 1225 | | |
| |||
1263 | 1250 | | |
1264 | 1251 | | |
1265 | 1252 | | |
1266 | | - | |
1267 | | - | |
| 1253 | + | |
1268 | 1254 | | |
1269 | 1255 | | |
1270 | 1256 | | |
1271 | 1257 | | |
1272 | | - | |
1273 | | - | |
| 1258 | + | |
1274 | 1259 | | |
1275 | 1260 | | |
1276 | 1261 | | |
1277 | 1262 | | |
1278 | | - | |
1279 | | - | |
| 1263 | + | |
1280 | 1264 | | |
1281 | 1265 | | |
1282 | 1266 | | |
1283 | 1267 | | |
1284 | | - | |
1285 | | - | |
| 1268 | + | |
1286 | 1269 | | |
1287 | 1270 | | |
1288 | 1271 | | |
1289 | 1272 | | |
1290 | | - | |
1291 | | - | |
| 1273 | + | |
1292 | 1274 | | |
1293 | 1275 | | |
1294 | 1276 | | |
1295 | 1277 | | |
1296 | | - | |
1297 | | - | |
| 1278 | + | |
1298 | 1279 | | |
1299 | 1280 | | |
1300 | 1281 | | |
1301 | 1282 | | |
1302 | | - | |
1303 | | - | |
| 1283 | + | |
1304 | 1284 | | |
1305 | 1285 | | |
1306 | 1286 | | |
| |||
0 commit comments