Skip to content

Commit f1e062e

Browse files
zhang-ruigregkh
authored andcommitted
thermal/intel_powerclamp: fix truncated kthread name
[ Upstream commit e925b5b ] 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 <[email protected]> Signed-off-by: Sasha Levin <[email protected]>
1 parent 637f86d commit f1e062e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/thermal/intel_powerclamp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -494,7 +494,7 @@ static void start_power_clamp_worker(unsigned long cpu)
494494
struct powerclamp_worker_data *w_data = per_cpu_ptr(worker_data, cpu);
495495
struct kthread_worker *worker;
496496

497-
worker = kthread_create_worker_on_cpu(cpu, 0, "kidle_inject/%ld", cpu);
497+
worker = kthread_create_worker_on_cpu(cpu, 0, "kidle_inj/%ld", cpu);
498498
if (IS_ERR(worker))
499499
return;
500500

0 commit comments

Comments
 (0)