[patch 09/38] iommu/vt-d: Use sched_clock() instead of get_cycles()

Baolu Lu baolu.lu at linux.intel.com
Fri Apr 10 23:45:43 AEST 2026


On 4/10/2026 8:19 PM, Thomas Gleixner wrote:
> Calculating the timeout from get_cycles() is a historical leftover without
> any functional requirement.
> 
> Use ktime_get() instead.

The subject line says "Use sched_clock() ...", but the implementation
actually uses ktime_get(). Is it a typo or anything I misunderstood?

Other parts look good to me,

Reviewed-by: Lu Baolu <baolu.lu at linux.intel.com>

> 
> Signed-off-by: Thomas Gleixner<tglx at kernel.org>
> Cc:x86 at kernel.org
> Cc: Lu Baolu<baolu.lu at linux.intel.com>
> Cc:iommu at lists.linux.dev
> ---
>   arch/x86/include/asm/iommu.h |    3 ---
>   drivers/iommu/intel/dmar.c   |    4 ++--
>   drivers/iommu/intel/iommu.h  |    8 ++++++--
>   3 files changed, 8 insertions(+), 7 deletions(-)

Thanks,
baolu


More information about the Linuxppc-dev mailing list