linux/arch
Anju T Sudhakar 48e626ac85 powerpc/powernv: Avoid re-registration of imc debugfs directory
export_imc_mode_and_cmd() function which creates the debugfs interface
for imc-mode and imc-command, is invoked when each nest pmu units is
registered.

When the first nest pmu unit is registered, export_imc_mode_and_cmd()
creates 'imc' directory under `/debug/powerpc/`. In the subsequent
invocations debugfs_create_dir() function returns, since the directory
already exists.

The recent commit <c33d442328f55> (debugfs: make error message a bit
more verbose), throws a warning if we try to invoke
`debugfs_create_dir()` with an already existing directory name.

Address this warning by making the debugfs directory registration in
the opal_imc_counters_probe() function, i.e invoke
export_imc_mode_and_cmd() function from the probe function.

Signed-off-by: Anju T Sudhakar <anju@linux.vnet.ibm.com>
Tested-by: Nageswara R Sastry <nasastry@in.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20191127072035.4283-1-anju@linux.vnet.ibm.com
2019-12-05 17:06:23 +11:00
..
alpha pci-v5.5-changes 2019-12-03 13:58:22 -08:00
arc pci-v5.5-changes 2019-12-03 13:58:22 -08:00
arm TTY/Serial patches for 5.5-rc1 2019-12-03 14:09:14 -08:00
arm64 pci-v5.5-changes 2019-12-03 13:58:22 -08:00
c6x dma-mapping updates for 5.5-rc1 2019-11-28 11:16:43 -08:00
csky dma-mapping updates for 5.5-rc1 2019-11-28 11:16:43 -08:00
h8300 h8300: Move EXCEPTION_TABLE to RO_DATA segment 2019-11-04 18:12:55 +01:00
hexagon Kbuild updates for v5.5 2019-12-02 17:35:04 -08:00
ia64 Kbuild updates for v5.5 2019-12-02 17:35:04 -08:00
m68k Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/ebiederm/user-namespace 2019-12-01 13:26:18 -08:00
microblaze dma-mapping updates for 5.5-rc1 2019-11-28 11:16:43 -08:00
mips pci-v5.5-changes 2019-12-03 13:58:22 -08:00
nds32 y2038: syscall implementation cleanups 2019-12-01 14:00:59 -08:00
nios2 Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/ebiederm/user-namespace 2019-12-01 13:26:18 -08:00
openrisc OpenRISC updates for 5.5 2019-12-02 17:18:43 -08:00
parisc y2038: syscall implementation cleanups 2019-12-01 14:00:59 -08:00
powerpc powerpc/powernv: Avoid re-registration of imc debugfs directory 2019-12-05 17:06:23 +11:00
riscv pci-v5.5-changes 2019-12-03 13:58:22 -08:00
s390 pci-v5.5-changes 2019-12-03 13:58:22 -08:00
sh - New Functionality 2019-12-01 16:13:39 -08:00
sparc pci-v5.5-changes 2019-12-03 13:58:22 -08:00
um This pull request contains the following changes for UML: 2019-12-02 17:14:02 -08:00
unicore32 generic ioremap support 2019-11-28 10:57:12 -08:00
x86 pci-v5.5-changes 2019-12-03 13:58:22 -08:00
xtensa Xtensa updates for v5.5: 2019-12-03 12:46:44 -08:00
.gitignore
Kconfig Merge branch 'akpm' (patches from Andrew) 2019-12-01 20:36:41 -08:00