]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
pmdomain: core: Use dev_name() instead of kobject_get_path() in debugfs
authorUlf Hansson <ulf.hansson@linaro.org>
Mon, 27 May 2024 14:25:53 +0000 (16:25 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 5 Aug 2024 11:22:34 +0000 (13:22 +0200)
commit9094e53ff5c86ebe372ad3960c3216c9817a1a04
treed17123f39c002bda1419096c837cd17ed5bbe7ff
parentb87eee38605c396f0e1fa435939960e5c6cd41d6
pmdomain: core: Use dev_name() instead of kobject_get_path() in debugfs

Using kobject_get_path() means a dynamic memory allocation gets done, which
doesn't work on a PREEMPT_RT based configuration while holding genpd's raw
spinlock.

To fix the problem, let's convert into using the simpler dev_name(). This
means the information about the path doesn't get presented in debugfs, but
hopefully this shouldn't be an issue.

Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Tested-by: Raghavendra Kakarla <quic_rkakarla@quicinc.com> # qcm6490 with PREEMPT_RT set
Acked-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Link: https://lore.kernel.org/r/20240527142557.321610-4-ulf.hansson@linaro.org
drivers/pmdomain/core.c