Skip to contentSkip to conversation

rt: shorten posix_cpu_timers/<CPU> kernel thread names

PATCH New Arnaldo Carvalho de Melo 1 participant 1 message Aug 13, 2008

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 rt: shorten posix_cpu_timers/<CPU> kernel thread names

Shorten the softirq kernel thread names because they always overflow the limited comm length, appearing as "posix_cpu_timer" CPU# times.

Done on 2.6.24.7, but probably applicable to later kernels.

kernel/posix-cpu-timers.c +1 -1
@@ -1473,7 +1473,7 @@ static int posix_cpu_thread_call(struct 
 	switch (action) {
 	case CPU_UP_PREPARE:
 		p = kthread_create(posix_cpu_timers_thread, hcpu,
-					"posix_cpu_timers/%d",cpu);
+					"posixcputmr/%d",cpu);
 		if (IS_ERR(p))
 			return NOTIFY_BAD;
 		p->flags |= PF_NOFREEZE;