thermal/intel_powerclamp: fix truncated kthread name
authorZhang Rui <rui.zhang@intel.com>
Mon, 18 Mar 2019 14:26:33 +0000 (22:26 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 20 Apr 2019 07:15:56 +0000 (09:15 +0200)
commit5b67d518eaaff84a1febf6b71667b2ed0bf59553
tree6e675093523c5f4de70625b80d90e3287eef6674
parent193dd213bebd6bcd74bf6583e28fb91f7bfcc255
thermal/intel_powerclamp: fix truncated kthread name

[ Upstream commit e925b5be5751f6a7286bbd9a4cbbc4ac90cc5fa6 ]

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>
drivers/thermal/intel_powerclamp.c