Repository navigation
Commit f2adfe1
powerpc/powernv: Avoid re-registration of imc debugfs directory
[ Upstream commit 48e626a ]
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
Signed-off-by: Sasha Levin <sashal@kernel.org>1 parent a293045 commit f2adfe1
1 file changed
Lines changed: 16 additions & 23 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | 62 | | |
67 | 63 | | |
68 | 64 | | |
| |||
135 | 131 | | |
136 | 132 | | |
137 | 133 | | |
138 | | - | |
139 | 134 | | |
140 | 135 | | |
141 | 136 | | |
| |||
151 | 146 | | |
152 | 147 | | |
153 | 148 | | |
154 | | - | |
| 149 | + | |
155 | 150 | | |
156 | 151 | | |
157 | 152 | | |
158 | 153 | | |
159 | 154 | | |
160 | 155 | | |
161 | 156 | | |
162 | | - | |
| 157 | + | |
163 | 158 | | |
164 | 159 | | |
165 | 160 | | |
166 | 161 | | |
167 | | - | |
| 162 | + | |
168 | 163 | | |
169 | 164 | | |
170 | 165 | | |
171 | 166 | | |
172 | 167 | | |
173 | | - | |
174 | | - | |
| 168 | + | |
175 | 169 | | |
176 | | - | |
177 | 170 | | |
178 | 171 | | |
179 | | - | |
180 | | - | |
| 172 | + | |
181 | 173 | | |
182 | | - | |
183 | 174 | | |
184 | 175 | | |
185 | 176 | | |
| |||
190 | 181 | | |
191 | 182 | | |
192 | 183 | | |
193 | | - | |
| 184 | + | |
194 | 185 | | |
195 | 186 | | |
196 | | - | |
| 187 | + | |
197 | 188 | | |
198 | 189 | | |
199 | 190 | | |
200 | | - | |
| 191 | + | |
201 | 192 | | |
202 | 193 | | |
203 | 194 | | |
| |||
254 | 245 | | |
255 | 246 | | |
256 | 247 | | |
| 248 | + | |
257 | 249 | | |
258 | 250 | | |
259 | 251 | | |
| |||
269 | 261 | | |
270 | 262 | | |
271 | 263 | | |
| 264 | + | |
272 | 265 | | |
273 | 266 | | |
274 | 267 | | |
| |||
300 | 293 | | |
301 | 294 | | |
302 | 295 | | |
303 | | - | |
304 | | - | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
305 | 301 | | |
| 302 | + | |
306 | 303 | | |
307 | 304 | | |
308 | 305 | | |
309 | 306 | | |
310 | 307 | | |
311 | 308 | | |
312 | 309 | | |
313 | | - | |
314 | | - | |
315 | | - | |
316 | | - | |
317 | 310 | | |
318 | 311 | | |
319 | 312 | | |
| |||
0 commit comments