WIP FPC-III support
[linux/fpc-iii.git] / tools / perf / arch / x86 / util / tsc.c
blob559365f8fe52f3f2bbf1b81e798990ef19a68764
1 // SPDX-License-Identifier: GPL-2.0
2 #include <linux/types.h>
4 #include "../../../util/tsc.h"
6 u64 rdtsc(void)
8 unsigned int low, high;
10 asm volatile("rdtsc" : "=a" (low), "=d" (high));
12 return low | ((u64)high) << 32;