File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1056,6 +1056,9 @@ config HAVE_IRQ_TIME_ACCOUNTING
10561056 Archs need to ensure they use a high enough resolution clock to
10571057 support irq time accounting and then call enable_sched_clock_irqtime().
10581058
1059+ config HAVE_PV_STEAL_CLOCK_GEN
1060+ bool
1061+
10591062config HAVE_MOVE_PUD
10601063 bool
10611064 help
Original file line number Diff line number Diff line change 55#ifdef CONFIG_PARAVIRT
66#include <linux/static_call_types.h>
77
8- struct static_key ;
9- extern struct static_key paravirt_steal_enabled ;
10- extern struct static_key paravirt_steal_rq_enabled ;
11-
128u64 dummy_steal_clock (int cpu );
139
1410DECLARE_STATIC_CALL (pv_steal_clock , dummy_steal_clock );
Original file line number Diff line number Diff line change 1212#include <linux/static_call.h>
1313#include <asm/paravirt.h>
1414
15- struct static_key paravirt_steal_enabled ;
16- struct static_key paravirt_steal_rq_enabled ;
17-
1815static u64 native_steal_clock (int cpu )
1916{
2017 return 0 ;
Original file line number Diff line number Diff line change 55#ifdef CONFIG_PARAVIRT
66#include <linux/static_call_types.h>
77
8- struct static_key ;
9- extern struct static_key paravirt_steal_enabled ;
10- extern struct static_key paravirt_steal_rq_enabled ;
11-
128u64 dummy_steal_clock (int cpu );
139
1410DECLARE_STATIC_CALL (pv_steal_clock , dummy_steal_clock );
Original file line number Diff line number Diff line change 1919#include <linux/slab.h>
2020#include <linux/types.h>
2121#include <linux/static_call.h>
22+ #include <linux/sched/cputime.h>
2223
2324#include <asm/paravirt.h>
2425#include <asm/pvclock-abi.h>
2526#include <asm/smp_plat.h>
2627
27- struct static_key paravirt_steal_enabled ;
28- struct static_key paravirt_steal_rq_enabled ;
29-
3028static u64 native_steal_clock (int cpu )
3129{
3230 return 0 ;
Original file line number Diff line number Diff line change 55#ifdef CONFIG_PARAVIRT
66
77#include <linux/static_call_types.h>
8- struct static_key ;
9- extern struct static_key paravirt_steal_enabled ;
10- extern struct static_key paravirt_steal_rq_enabled ;
118
129u64 dummy_steal_clock (int cpu );
1310DECLARE_STATIC_CALL (pv_steal_clock , dummy_steal_clock );
Original file line number Diff line number Diff line change 66#include <linux/kvm_para.h>
77#include <linux/reboot.h>
88#include <linux/static_call.h>
9+ #include <linux/sched/cputime.h>
910#include <asm/paravirt.h>
1011
1112static int has_steal_clock ;
12- struct static_key paravirt_steal_enabled ;
13- struct static_key paravirt_steal_rq_enabled ;
1413static DEFINE_PER_CPU (struct kvm_steal_time , steal_time ) __aligned (64 );
1514DEFINE_STATIC_KEY_FALSE (virt_spin_lock_key );
1615
Original file line number Diff line number Diff line change @@ -23,9 +23,6 @@ static inline bool is_shared_processor(void)
2323}
2424
2525#ifdef CONFIG_PARAVIRT_TIME_ACCOUNTING
26- extern struct static_key paravirt_steal_enabled ;
27- extern struct static_key paravirt_steal_rq_enabled ;
28-
2926u64 pseries_paravirt_steal_clock (int cpu );
3027
3128static inline u64 paravirt_steal_clock (int cpu )
Original file line number Diff line number Diff line change 4242#include <linux/memblock.h>
4343#include <linux/swiotlb.h>
4444#include <linux/seq_buf.h>
45+ #include <linux/sched/cputime.h>
4546
4647#include <asm/mmu.h>
4748#include <asm/processor.h>
@@ -83,9 +84,6 @@ DEFINE_STATIC_KEY_FALSE(shared_processor);
8384EXPORT_SYMBOL (shared_processor );
8485
8586#ifdef CONFIG_PARAVIRT_TIME_ACCOUNTING
86- struct static_key paravirt_steal_enabled ;
87- struct static_key paravirt_steal_rq_enabled ;
88-
8987static bool steal_acc = true;
9088static int __init parse_no_stealacc (char * arg )
9189{
Original file line number Diff line number Diff line change 55#ifdef CONFIG_PARAVIRT
66#include <linux/static_call_types.h>
77
8- struct static_key ;
9- extern struct static_key paravirt_steal_enabled ;
10- extern struct static_key paravirt_steal_rq_enabled ;
11-
128u64 dummy_steal_clock (int cpu );
139
1410DECLARE_STATIC_CALL (pv_steal_clock , dummy_steal_clock );
You can’t perform that action at this time.
0 commit comments