Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: GPL-2.0-only
0002 /*
0003  *
0004  * Copyright (C) 2013 Citrix Systems
0005  *
0006  * Author: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
0007  */
0008 
0009 #include <linux/export.h>
0010 #include <linux/jump_label.h>
0011 #include <linux/types.h>
0012 #include <linux/static_call.h>
0013 #include <asm/paravirt.h>
0014 
0015 struct static_key paravirt_steal_enabled;
0016 struct static_key paravirt_steal_rq_enabled;
0017 
0018 static u64 native_steal_clock(int cpu)
0019 {
0020     return 0;
0021 }
0022 
0023 DEFINE_STATIC_CALL(pv_steal_clock, native_steal_clock);