Commit 698c4eba authored by Stefan Wahren's avatar Stefan Wahren Committed by Greg Kroah-Hartman

staging: vc04_services: Improve readability of kthread names

This patch tries to make the kernel thread names of vchiq a little
bit more self explaining and look closer to the existing ones:

slot handler: VCHIQ-%d -> vchiq-slot/%d
recycle thread: VCHIQr-%d -> vchiq-recy/%d
sync thread: VCHIQs-%d -> vhciq-sync/%d
keep-alive thread: VCHIQka-%d -> vchiq-keep/%d
Signed-off-by: default avatarStefan Wahren <stefan.wahren@i2se.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 364d26f1
...@@ -2824,10 +2824,10 @@ void vchiq_platform_conn_state_changed(VCHIQ_STATE_T *state, ...@@ -2824,10 +2824,10 @@ void vchiq_platform_conn_state_changed(VCHIQ_STATE_T *state,
if (state->conn_state == VCHIQ_CONNSTATE_CONNECTED) { if (state->conn_state == VCHIQ_CONNSTATE_CONNECTED) {
write_lock_bh(&arm_state->susp_res_lock); write_lock_bh(&arm_state->susp_res_lock);
if (!arm_state->first_connect) { if (!arm_state->first_connect) {
char threadname[10]; char threadname[16];
arm_state->first_connect = 1; arm_state->first_connect = 1;
write_unlock_bh(&arm_state->susp_res_lock); write_unlock_bh(&arm_state->susp_res_lock);
snprintf(threadname, sizeof(threadname), "VCHIQka-%d", snprintf(threadname, sizeof(threadname), "vchiq-keep/%d",
state->id); state->id);
arm_state->ka_thread = kthread_create( arm_state->ka_thread = kthread_create(
&vchiq_keepalive_thread_func, &vchiq_keepalive_thread_func,
......
...@@ -2315,7 +2315,7 @@ vchiq_init_state(VCHIQ_STATE_T *state, VCHIQ_SLOT_ZERO_T *slot_zero, ...@@ -2315,7 +2315,7 @@ vchiq_init_state(VCHIQ_STATE_T *state, VCHIQ_SLOT_ZERO_T *slot_zero,
VCHIQ_SHARED_STATE_T *local; VCHIQ_SHARED_STATE_T *local;
VCHIQ_SHARED_STATE_T *remote; VCHIQ_SHARED_STATE_T *remote;
VCHIQ_STATUS_T status; VCHIQ_STATUS_T status;
char threadname[10]; char threadname[16];
static int id; static int id;
int i; int i;
...@@ -2483,7 +2483,7 @@ vchiq_init_state(VCHIQ_STATE_T *state, VCHIQ_SLOT_ZERO_T *slot_zero, ...@@ -2483,7 +2483,7 @@ vchiq_init_state(VCHIQ_STATE_T *state, VCHIQ_SLOT_ZERO_T *slot_zero,
/* /*
bring up slot handler thread bring up slot handler thread
*/ */
snprintf(threadname, sizeof(threadname), "VCHIQ-%d", state->id); snprintf(threadname, sizeof(threadname), "vchiq-slot/%d", state->id);
state->slot_handler_thread = kthread_create(&slot_handler_func, state->slot_handler_thread = kthread_create(&slot_handler_func,
(void *)state, (void *)state,
threadname); threadname);
...@@ -2497,7 +2497,7 @@ vchiq_init_state(VCHIQ_STATE_T *state, VCHIQ_SLOT_ZERO_T *slot_zero, ...@@ -2497,7 +2497,7 @@ vchiq_init_state(VCHIQ_STATE_T *state, VCHIQ_SLOT_ZERO_T *slot_zero,
set_user_nice(state->slot_handler_thread, -19); set_user_nice(state->slot_handler_thread, -19);
wake_up_process(state->slot_handler_thread); wake_up_process(state->slot_handler_thread);
snprintf(threadname, sizeof(threadname), "VCHIQr-%d", state->id); snprintf(threadname, sizeof(threadname), "vchiq-recy/%d", state->id);
state->recycle_thread = kthread_create(&recycle_func, state->recycle_thread = kthread_create(&recycle_func,
(void *)state, (void *)state,
threadname); threadname);
...@@ -2510,7 +2510,7 @@ vchiq_init_state(VCHIQ_STATE_T *state, VCHIQ_SLOT_ZERO_T *slot_zero, ...@@ -2510,7 +2510,7 @@ vchiq_init_state(VCHIQ_STATE_T *state, VCHIQ_SLOT_ZERO_T *slot_zero,
set_user_nice(state->recycle_thread, -19); set_user_nice(state->recycle_thread, -19);
wake_up_process(state->recycle_thread); wake_up_process(state->recycle_thread);
snprintf(threadname, sizeof(threadname), "VCHIQs-%d", state->id); snprintf(threadname, sizeof(threadname), "vchiq-sync/%d", state->id);
state->sync_thread = kthread_create(&sync_func, state->sync_thread = kthread_create(&sync_func,
(void *)state, (void *)state,
threadname); threadname);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment