mbox series

[0/3] Setting the pmu::capability and modify some code styles

Message ID 20230119100307.3660-1-hejunhao3@huawei.com (mailing list archive)
Headers show
Series Setting the pmu::capability and modify some code styles | expand

Message

Junhao He Jan. 19, 2023, 10:03 a.m. UTC
Advertise the PERF_PMU_CAP_NO_EXCLUDE capability.

And modify some code style, include the following:
1) Simplify the parameters of hisi_pmu_init() function.
2) Use hisi_pmu_init() function to simplify initialization of "hisi_pmu->pmu".

Junhao He (3):
  drivers/perf: hisi: Advertise the PERF_PMU_CAP_NO_EXCLUDE capability
  drivers/perf: hisi: Simplify the parameters of hisi_pmu_init()
  drivers/perf: hisi: Extract initialization of "cpa_pmu->pmu"

 drivers/perf/hisilicon/hisi_uncore_cpa_pmu.c  | 16 +---------------
 drivers/perf/hisilicon/hisi_uncore_ddrc_pmu.c |  2 +-
 drivers/perf/hisilicon/hisi_uncore_hha_pmu.c  |  2 +-
 drivers/perf/hisilicon/hisi_uncore_l3c_pmu.c  |  2 +-
 drivers/perf/hisilicon/hisi_uncore_pa_pmu.c   |  2 +-
 drivers/perf/hisilicon/hisi_uncore_pmu.c      |  9 ++++++---
 drivers/perf/hisilicon/hisi_uncore_pmu.h      |  4 ++--
 drivers/perf/hisilicon/hisi_uncore_sllc_pmu.c |  2 +-
 8 files changed, 14 insertions(+), 25 deletions(-)

Comments

Will Deacon Jan. 19, 2023, 7:08 p.m. UTC | #1
On Thu, 19 Jan 2023 18:03:04 +0800, Junhao He wrote:
> Advertise the PERF_PMU_CAP_NO_EXCLUDE capability.
> 
> And modify some code style, include the following:
> 1) Simplify the parameters of hisi_pmu_init() function.
> 2) Use hisi_pmu_init() function to simplify initialization of "hisi_pmu->pmu".
> 
> Junhao He (3):
>   drivers/perf: hisi: Advertise the PERF_PMU_CAP_NO_EXCLUDE capability
>   drivers/perf: hisi: Simplify the parameters of hisi_pmu_init()
>   drivers/perf: hisi: Extract initialization of "cpa_pmu->pmu"
> 
> [...]

Applied to will (for-next/perf), thanks!

[1/3] drivers/perf: hisi: Advertise the PERF_PMU_CAP_NO_EXCLUDE capability
      https://git.kernel.org/will/c/7f95da9d2dc4
[2/3] drivers/perf: hisi: Simplify the parameters of hisi_pmu_init()
      https://git.kernel.org/will/c/053b5579dacf
[3/3] drivers/perf: hisi: Extract initialization of "cpa_pmu->pmu"
      https://git.kernel.org/will/c/e126f6f42f89

Cheers,