Re: [PATCH V2 02/11] perf/x86: Add support for TSC as a perf event clock

From: Adrian Hunter
Date: Fri Mar 04 2022 - 07:41:25 EST


On 04/03/2022 14:33, Peter Zijlstra wrote:
> On Mon, Feb 14, 2022 at 01:09:05PM +0200, Adrian Hunter wrote:
>> +u64 perf_hw_clock(void)
>> +{
>> + return rdtsc_ordered();
>> +}
>
> Why the _ordered ?

To be on the safe-side - in case it matters. trace_clock_x86_tsc() also uses the ordered variant.