Repository navigation
Commit b916b78
drivers/perf: kill armpmu_register
Nothing outside of drivers/perf/arm_pmu.c should call armpmu_register
any more, so it no longer needs to be in include/linux/perf/arm_pmu.h.
Additionally, by folding it in to arm_pmu_device_probe we can allow
drivers to override struct pmu fields without getting blatted by the
armpmu code.
This patch folds armpmu_register into arm_pmu_device_probe. The logging
to the console is moved to after the PMU is successfully registered with
the core perf code.
Signed-off-by: Mark Rutland <mark.rutland@arm.com>
Suggested-by: Will Deacon <will.deacon@arm.com>
Cc: Drew Richardson <drew.richardson@arm.com>
Cc: Pawel Moll <pawel.moll@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>1 parent 8005c49 commit b916b78
2 files changed
Lines changed: 6 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
551 | 551 | | |
552 | 552 | | |
553 | 553 | | |
554 | | - | |
555 | | - | |
556 | | - | |
557 | | - | |
558 | | - | |
559 | | - | |
560 | | - | |
561 | | - | |
562 | 554 | | |
563 | 555 | | |
564 | 556 | | |
| |||
887 | 879 | | |
888 | 880 | | |
889 | 881 | | |
| 882 | + | |
| 883 | + | |
890 | 884 | | |
891 | 885 | | |
892 | 886 | | |
| |||
912 | 906 | | |
913 | 907 | | |
914 | 908 | | |
915 | | - | |
| 909 | + | |
916 | 910 | | |
917 | 911 | | |
918 | 912 | | |
| 913 | + | |
| 914 | + | |
| 915 | + | |
919 | 916 | | |
920 | 917 | | |
921 | 918 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
111 | 111 | | |
112 | 112 | | |
113 | 113 | | |
114 | | - | |
115 | | - | |
116 | 114 | | |
117 | 115 | | |
118 | 116 | | |
| |||
0 commit comments