]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/perf/hv-24x7: Move cpumask file to top folder of hv-24x7 driver
authorKajol Jain <kjain@linux.ibm.com>
Fri, 21 Aug 2020 08:06:10 +0000 (13:36 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 21 Aug 2020 13:35:27 +0000 (23:35 +1000)
commit09b1b8dfe5b1cedefede22116841ba872bc67950
tree35c1ec4e33a0cf4ab2743f5e8cfd8bac9dfb89f2
parent5b6c486f7bddc9d53ebce7b8889ff79861c14f9c
powerpc/perf/hv-24x7: Move cpumask file to top folder of hv-24x7 driver

Commit 7443db224ce9 ("powerpc/hv-24x7: Add sysfs files inside hv-24x7
device to show cpumask") added cpumask file as part of hv-24x7 driver
inside the interface folder. The cpumask file is supposed to be in the
top folder of the PMU driver in order to make hotplug work.

This patch fixes that issue and creates new group 'cpumask_attr_group'
to add cpumask file and make sure it added in top folder.

  command:# cat /sys/devices/hv_24x7/cpumask
  0

Fixes: 7443db224ce9 ("powerpc/hv-24x7: Add sysfs files inside hv-24x7 device to show cpumask")
Signed-off-by: Kajol Jain <kjain@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20200821080610.123997-1-kjain@linux.ibm.com
Documentation/ABI/testing/sysfs-bus-event_source-devices-hv_24x7
arch/powerpc/perf/hv-24x7.c