Lines Matching refs:cpu
29 u64 pseries_paravirt_steal_clock(int cpu);
31 static inline u64 paravirt_steal_clock(int cpu)
33 return pseries_paravirt_steal_clock(cpu);
37 /* If bit 0 is set, the cpu has been ceded, conferred, or preempted */
38 static inline u32 yield_count_of(int cpu)
40 __be32 yield_count = READ_ONCE(lppaca_of(cpu).yield_count);
60 static inline void yield_to_preempted(int cpu, u32 yield_count)
62 plpar_hcall_norets_notrace(H_CONFER, get_hard_smp_processor_id(cpu), yield_count);
65 static inline void prod_cpu(int cpu)
67 plpar_hcall_norets_notrace(H_PROD, get_hard_smp_processor_id(cpu));
96 static inline u32 yield_count_of(int cpu)
102 static inline void yield_to_preempted(int cpu, u32 yield_count)
114 static inline void prod_cpu(int cpu)
130 static inline bool vcpu_is_preempted(int cpu)
134 * whether the hypervisor has dispatched @cpu to run on a physical
135 * processor. When it is clear, @cpu is definitely not preempted.
138 * @cpu first, resorting to the yield count last.
152 if (vcpu_is_dispatched(cpu))
159 if (!is_vcpu_idle(cpu))
171 * we're not accessing per-cpu resources in a way that can
188 if (cpu_first_thread_sibling(cpu) == first_cpu)
198 first_cpu = cpu_first_thread_sibling(cpu);
200 if (i == cpu)