mirror of
https://github.com/torvalds/linux.git
synced 2026-04-19 15:24:02 -04:00
Helper to convert GT clock cycles to nanoseconds. v2: Use DIV_ROUND_CLOSEST_ULL helper(Ashutosh) v3: rename xe_gt_clock_interval_to_ns to xe_gt_clock_cycles_to_ns Reviewed-by: Tejas Upadhyay <tejas.upadhyay@intel.com> Reviewed-by: Ashutosh Dixit <ashutosh.dixit@intel.com> Signed-off-by: Aravind Iddamsetty <aravind.iddamsetty@linux.intel.com> Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
16 lines
284 B
C
16 lines
284 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_cycles_to_ns(const struct xe_gt *gt, u64 count);
|
|
#endif
|