tsc.c (6e2d6b2728fcb408eabd7991804f8cb33ff59f20) tsc.c (5c83511bdb9832c86be20fb86b783356e2f58062)
1#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
2
3#include <linux/kernel.h>
4#include <linux/sched.h>
5#include <linux/sched/clock.h>
6#include <linux/init.h>
7#include <linux/export.h>
8#include <linux/timer.h>

--- 232 unchanged lines hidden (view full) ---

241#ifdef CONFIG_PARAVIRT
242unsigned long long sched_clock(void)
243{
244 return paravirt_sched_clock();
245}
246
247bool using_native_sched_clock(void)
248{
1#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
2
3#include <linux/kernel.h>
4#include <linux/sched.h>
5#include <linux/sched/clock.h>
6#include <linux/init.h>
7#include <linux/export.h>
8#include <linux/timer.h>

--- 232 unchanged lines hidden (view full) ---

241#ifdef CONFIG_PARAVIRT
242unsigned long long sched_clock(void)
243{
244 return paravirt_sched_clock();
245}
246
247bool using_native_sched_clock(void)
248{
249 return pv_time_ops.sched_clock == native_sched_clock;
249 return pv_ops.time.sched_clock == native_sched_clock;
250}
251#else
252unsigned long long
253sched_clock(void) __attribute__((alias("native_sched_clock")));
254
255bool using_native_sched_clock(void) { return true; }
256#endif
257

--- 1250 unchanged lines hidden ---
250}
251#else
252unsigned long long
253sched_clock(void) __attribute__((alias("native_sched_clock")));
254
255bool using_native_sched_clock(void) { return true; }
256#endif
257

--- 1250 unchanged lines hidden ---