mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-05 18:39:59 +00:00
thermal/intel_powerclamp: fix truncated kthread name
[ Upstream commit e925b5be57
]
kthread name only allows 15 characters (TASK_COMMON_LEN is 16).
Thus rename the kthreads created by intel_powerclamp driver from
"kidle_inject/ + decimal cpuid" to "kidle_inj/ + decimal cpuid"
to avoid truncated kthead name for cpu 100 and later.
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
637f86d250
commit
f1e062e8ce
1 changed files with 1 additions and 1 deletions
|
@ -494,7 +494,7 @@ static void start_power_clamp_worker(unsigned long cpu)
|
||||||
struct powerclamp_worker_data *w_data = per_cpu_ptr(worker_data, cpu);
|
struct powerclamp_worker_data *w_data = per_cpu_ptr(worker_data, cpu);
|
||||||
struct kthread_worker *worker;
|
struct kthread_worker *worker;
|
||||||
|
|
||||||
worker = kthread_create_worker_on_cpu(cpu, 0, "kidle_inject/%ld", cpu);
|
worker = kthread_create_worker_on_cpu(cpu, 0, "kidle_inj/%ld", cpu);
|
||||||
if (IS_ERR(worker))
|
if (IS_ERR(worker))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue