-nr_cpus_allowed = cpumask_weight(new_mask);
+ cpumask_and(p-cpus_allowed, p-sys_allowed, new_mask);
+ p-nr_cpus_allowed = cpumask_weight(p-cpus_allowed);
}
/*
--
1.8.3.1
--
Thanks and Regards
Srikar Dronamraju
--
To unsubscribe from this list: send the line unsubscribe kvm-ppc
and Regards
Srikar Dronamraju
--
To unsubscribe from this list: send the line unsubscribe kvm-ppc in
the body of a message to majord...@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
this be
if (cpu_online(core * threads_per_core + thr))
cpumask_set_cpu(core * threads_per_core + thr,
stop_cpus);
?
--
Thanks and Regards
Srikar Dronamraju
--
To unsubscribe from this list: send the line unsubscribe kvm-ppc in
the body of a message
@@ -4323,6 +4340,10 @@ bool __sched yield_to(struct task_struct *p,
bool preempt)
rq = this_rq();
again:
+ /* optimistic test to avoid taking locks */
+ if (!__yield_to_candidate(curr, p))
+ goto out_irq;
+
So add something like:
* Peter Zijlstra pet...@infradead.org [2012-09-10 18:03:55]:
On Mon, 2012-09-10 at 08:16 -0500, Andrew Theurer wrote:
@@ -4856,8 +4859,6 @@ again:
if (curr-sched_class != p-sched_class)
goto out;
- if (task_running(p_rq, p) || p-state)
- goto
On 12/07/12 21:18, Raghavendra K T wrote:
+#ifdef CONFIG_HAVE_KVM_CPU_RELAX_INTERCEPT
[...]
+ struct {
+ bool cpu_relax_intercepted;
+ bool dy_eligible;
+ } ple;
+#endif
[...]
}
vcpu-run = page_address(page);
+ vcpu-ple.cpu_relax_intercepted =