mirror of
git://git.yoctoproject.org/linux-yocto.git
synced 2025-08-22 00:42:01 +02:00

Add helper to convert GT clock ticks to msec. Useful for determining if timeouts occur by examing GT clock ticks. v6: - s/nom/n , s/dom/d (Jonathan) - include math64 (CI) Signed-off-by: Matthew Brost <matthew.brost@intel.com> Reviewed-by: Jonathan Cavitt <jonathan.cavitt@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20240611144053.2805091-6-matthew.brost@intel.com
17 lines
281 B
C
17 lines
281 B
C
/* SPDX-License-Identifier: MIT */
|
|
/*
|
|
* Copyright © 2022 Intel Corporation
|
|
*/
|
|
|
|
#ifndef _XE_GT_CLOCK_H_
|
|
#define _XE_GT_CLOCK_H_
|
|
|
|
#include <linux/types.h>
|
|
|
|
struct xe_gt;
|
|
|
|
int xe_gt_clock_init(struct xe_gt *gt);
|
|
u64 xe_gt_clock_interval_to_ms(struct xe_gt *gt, u64 count);
|
|
|
|
#endif
|