From patchwork Mon Oct 23 12:13:05 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nirmoy Das X-Patchwork-Id: 13432815 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id A388DCDB474 for ; Mon, 23 Oct 2023 12:13:20 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id C858B10E1B9; Mon, 23 Oct 2023 12:13:19 +0000 (UTC) Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.20]) by gabe.freedesktop.org (Postfix) with ESMTPS id 8710310E1B5; Mon, 23 Oct 2023 12:13:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1698063195; x=1729599195; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=yOwcElqlK6VygFlKmmOUYYYj/YezK4k8gr3Pt+hbxRI=; b=PV2HDb1r7zX1FNIByHvVJ9Oyr1hqxdgDNXB0JRKEY1F4RcLU4wmKRTWq Tc/5wi0EdZGMPEcMejrd2kvcmqWsnq+W35Fau8K6nDHy3iSEnFbU6YCPy t4q9e9fwLWZq+U9+fpopUd64hpsvavCeiuYqAEAUo1FBBSoS5w3OnwZvD +R3aA2f0YgKUn5iefKK/F4pj6MuOkvCCDWGJf1IdFJgseYoR5E1GO/LmB V5KSEFwrKgNysJ3CfqMaUO0rSwJEe7FEWmy4PC6FI48yhF/B6eCNEwvFM w1VdYBW4iZV41jmvOvQTWUA72R81hIAF9148jlj5zsa/sI8OVvoSBujHo w==; X-IronPort-AV: E=McAfee;i="6600,9927,10872"; a="377199037" X-IronPort-AV: E=Sophos;i="6.03,244,1694761200"; d="scan'208";a="377199037" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Oct 2023 05:13:14 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10872"; a="751612498" X-IronPort-AV: E=Sophos;i="6.03,244,1694761200"; d="scan'208";a="751612498" Received: from nirmoyda-desk.igk.intel.com ([10.102.138.190]) by orsmga007-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Oct 2023 05:13:13 -0700 From: Nirmoy Das To: intel-gfx@lists.freedesktop.org Subject: [PATCH] drm/i915/gt: Use proper priority enum instead of 0 Date: Mon, 23 Oct 2023 14:13:05 +0200 Message-ID: <20231023121305.12560-1-nirmoy.das@intel.com> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Organization: Intel Deutschland GmbH, Registered Address: Am Campeon 10, 85579 Neubiberg, Germany, Commercial Register: Amtsgericht Muenchen HRB 186928 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: John Harrison , dri-devel@lists.freedesktop.org, Nirmoy Das Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" I915_PRIORITY_NORMAL is 0 so use that instead for better readability. Cc: John Harrison Signed-off-by: Nirmoy Das Reviewed-by: Andi Shyti --- drivers/gpu/drm/i915/gt/intel_engine_heartbeat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/gt/intel_engine_heartbeat.c b/drivers/gpu/drm/i915/gt/intel_engine_heartbeat.c index 9a527e1f5be6..1a8e2b7db013 100644 --- a/drivers/gpu/drm/i915/gt/intel_engine_heartbeat.c +++ b/drivers/gpu/drm/i915/gt/intel_engine_heartbeat.c @@ -188,7 +188,7 @@ static void heartbeat(struct work_struct *wrk) * low latency and no jitter] the chance to naturally * complete before being preempted. */ - attr.priority = 0; + attr.priority = I915_PRIORITY_NORMAL; if (rq->sched.attr.priority >= attr.priority) attr.priority = I915_PRIORITY_HEARTBEAT; if (rq->sched.attr.priority >= attr.priority)