Skip to content

Commit 1b822b7

Browse files
committed
drm/xe/guc: Rename CT state change helper
In this helper we are already doing much more than just setting a new CT state and its name was little misleading. Rename it. Signed-off-by: Michal Wajdeczko <[email protected]> Cc: Matthew Brost <[email protected]> Reviewed-by: Jonathan Cavitt <[email protected]> Acked-by: Matthew Brost <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 0efec05 commit 1b822b7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

drivers/gpu/drm/xe/xe_guc_ct.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ static int guc_ct_control_toggle(struct xe_guc_ct *ct, bool enable)
384384
return ret > 0 ? -EPROTO : ret;
385385
}
386386

387-
static void xe_guc_ct_set_state(struct xe_guc_ct *ct,
387+
static void guc_ct_change_state(struct xe_guc_ct *ct,
388388
enum xe_guc_ct_state state)
389389
{
390390
mutex_lock(&ct->lock); /* Serialise dequeue_one_g2h() */
@@ -469,7 +469,7 @@ int xe_guc_ct_enable(struct xe_guc_ct *ct)
469469
if (err)
470470
goto err_out;
471471

472-
xe_guc_ct_set_state(ct, XE_GUC_CT_STATE_ENABLED);
472+
guc_ct_change_state(ct, XE_GUC_CT_STATE_ENABLED);
473473

474474
smp_mb();
475475
wake_up_all(&ct->wq);
@@ -514,7 +514,7 @@ static void stop_g2h_handler(struct xe_guc_ct *ct)
514514
*/
515515
void xe_guc_ct_disable(struct xe_guc_ct *ct)
516516
{
517-
xe_guc_ct_set_state(ct, XE_GUC_CT_STATE_DISABLED);
517+
guc_ct_change_state(ct, XE_GUC_CT_STATE_DISABLED);
518518
ct_exit_safe_mode(ct);
519519
stop_g2h_handler(ct);
520520
}
@@ -530,7 +530,7 @@ void xe_guc_ct_stop(struct xe_guc_ct *ct)
530530
if (!xe_guc_ct_initialized(ct))
531531
return;
532532

533-
xe_guc_ct_set_state(ct, XE_GUC_CT_STATE_STOPPED);
533+
guc_ct_change_state(ct, XE_GUC_CT_STATE_STOPPED);
534534
stop_g2h_handler(ct);
535535
}
536536

0 commit comments

Comments
 (0)