]> Gentwo Git Trees - linux/.git/commit
scsi: ufs: core: Only collect timestamps if monitoring is enabled
authorBart Van Assche <bvanassche@acm.org>
Tue, 19 Aug 2025 15:39:50 +0000 (08:39 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 20 Aug 2025 02:21:10 +0000 (22:21 -0400)
commitcb7cc0cfb38cf50c902caadee0e0e87fc38490aa
tree77078cee8f3017af65d2669f339df1497b50ddad
parent6f4b10226b6b1e7d1ff3cdb006cf0f6da6eed71e
scsi: ufs: core: Only collect timestamps if monitoring is enabled

Every ktime_get() call in the hot path has a measurable impact on IOPS.
Hence, only collect timestamps if the monitoring functionality is
enabled.

See also commit 1d8613a23f3c ("scsi: ufs: core: Introduce HBA
performance monitor sysfs nodes").

Cc: Can Guo <cang@codeaurora.org>
Cc: Bean Huo <beanhuo@micron.com>
Cc: Daejun Park <daejun7.park@samsung.com>
Reviewed-by: Peter Wang <peter.wang@mediatek.com>
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Link: https://lore.kernel.org/r/20250819153958.2255907-1-bvanassche@acm.org
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/ufs/core/ufshcd.c