From patchwork Wed Apr 10 11:48:20 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "D, Lakshmi Sowjanya" X-Patchwork-Id: 13624137 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.14]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 951F015B553; Wed, 10 Apr 2024 11:48:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.14 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712749739; cv=none; b=YCTtpyUagYRYpToS9DoEcwWIRuCboMxrASfH57IoFPHaYhYYpVHDrIj877Dw8H3743FnHVbYZ0gWoF0cgnK4hQqJCdnMwuhW1zqErcww5BL+sN8AEBJVvJ/WgUkuisoh7uEx5dbdJ/X090ZGiEyd7krAxcvvb65i71DAE2WBch4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712749739; c=relaxed/simple; bh=7puByggnPgimteIXX6YsrxV9KWGylqST0xNcu2gGPvg=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=t0Hs0J0v8j5OBHtRHAEe26eByyCBYPfiLWZOVz31k5yfi7l2TbZwZS6FxJcv8st+Ll6LwUT/dxSlhGFPnQaluSSkHzFeK45ffbrMct1zHP72CPY12vnjlzjfsMZ62ch92owSNEym+16zAAOMRKemX3k+nhwGD4KLP4M3eZlTNdY= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=OmsAGaTQ; arc=none smtp.client-ip=198.175.65.14 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="OmsAGaTQ" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1712749738; x=1744285738; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=7puByggnPgimteIXX6YsrxV9KWGylqST0xNcu2gGPvg=; b=OmsAGaTQeQjkaT1PaXMsDN9mzKtbdO610u+K+5XJaQqBCqdj9k7fmR3W KSYA+zP4BXMW6ODBWCgj94LrWKnWzPU05nZgLddkTU/BCU12I1Same8xh Uj+y8c3wfCVryqqC+9Q7t0Iix5Px4zi8413/b0+qJ/Q+BZs8yjM9lQSz9 1hGFZU/Ou+R8ziCzHIdfRq3Z3qAre6uQa4dA9trvWx0spDomDwGYrK+2A DIu7bHfeeKUdl+m4ux2s3lAszepLzaKqZ3UHeDY4tlzDGtmkeOrf7vj9+ 7JLvM1ThuLfrPJOY554SX1ev33YRTx4wWE2cx9ruv0ydKsQLGWnLjYUif w==; X-CSE-ConnectionGUID: NSFMokW8QRu7dAqCRBECdA== X-CSE-MsgGUID: 8OQCHU0cQHuKNJdrsFeFfA== X-IronPort-AV: E=McAfee;i="6600,9927,11039"; a="11944095" X-IronPort-AV: E=Sophos;i="6.07,190,1708416000"; d="scan'208";a="11944095" Received: from fmviesa002.fm.intel.com ([10.60.135.142]) by orvoesa106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Apr 2024 04:48:57 -0700 X-CSE-ConnectionGUID: 5eO4LQXMSMS/z8NslE3o6Q== X-CSE-MsgGUID: YwiGu1tXQbSKHJ70gI9tpg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,190,1708416000"; d="scan'208";a="43769250" Received: from inlubt0316.iind.intel.com ([10.191.20.213]) by fmviesa002.fm.intel.com with ESMTP; 10 Apr 2024 04:48:50 -0700 From: lakshmi.sowjanya.d@intel.com To: tglx@linutronix.de, jstultz@google.com, giometti@enneenne.com, corbet@lwn.net, linux-kernel@vger.kernel.org Cc: x86@kernel.org, netdev@vger.kernel.org, linux-doc@vger.kernel.org, intel-wired-lan@lists.osuosl.org, andriy.shevchenko@linux.intel.com, eddie.dong@intel.com, christopher.s.hall@intel.com, jesse.brandeburg@intel.com, davem@davemloft.net, alexandre.torgue@foss.st.com, joabreu@synopsys.com, mcoquelin.stm32@gmail.com, perex@perex.cz, linux-sound@vger.kernel.org, anthony.l.nguyen@intel.com, peter.hilber@opensynergy.com, pandith.n@intel.com, subramanian.mohan@intel.com, thejesh.reddy.t.r@intel.com, lakshmi.sowjanya.d@intel.com Subject: [PATCH v6 03/11] igc: remove convert_art_to_tsc() Date: Wed, 10 Apr 2024 17:18:20 +0530 Message-Id: <20240410114828.25581-4-lakshmi.sowjanya.d@intel.com> X-Mailer: git-send-email 2.35.3 In-Reply-To: <20240410114828.25581-1-lakshmi.sowjanya.d@intel.com> References: <20240410114828.25581-1-lakshmi.sowjanya.d@intel.com> Precedence: bulk X-Mailing-List: linux-sound@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 From: Thomas Gleixner Remove convert_art_to_tsc() function call, Pass system clock cycles and clocksource ID as input to get_device_system_crosststamp(). Signed-off-by: Thomas Gleixner Signed-off-by: Lakshmi Sowjanya D --- drivers/net/ethernet/intel/igc/igc_ptp.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/net/ethernet/intel/igc/igc_ptp.c b/drivers/net/ethernet/intel/igc/igc_ptp.c index 885faaa7b9de..39656489d73e 100644 --- a/drivers/net/ethernet/intel/igc/igc_ptp.c +++ b/drivers/net/ethernet/intel/igc/igc_ptp.c @@ -901,7 +901,11 @@ static bool igc_is_crosststamp_supported(struct igc_adapter *adapter) static struct system_counterval_t igc_device_tstamp_to_system(u64 tstamp) { #if IS_ENABLED(CONFIG_X86_TSC) && !defined(CONFIG_UML) - return convert_art_ns_to_tsc(tstamp); + return (struct system_counterval_t) { + .cs_id = CSID_X86_ART, + .cycles = tstamp, + .use_nsecs = true, + }; #else return (struct system_counterval_t) { }; #endif