Re: [RFC 01/11] sched: introduce sys_cpumask in tsk to adapt asymmetric system

2014-11-12 Thread Srikar Dronamraju
-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

Re: [RFC 02/11] powerpc: kvm: ensure vcpu-thread run only on primary hwthread

2014-11-12 Thread Srikar Dronamraju
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

Re: [RFC 03/11] powerpc: kvm: add interface to control kvm function on a core

2014-11-12 Thread Srikar Dronamraju
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

Re: [RFC][PATCH] Improving directed yield scalability for PLE handler

2012-09-11 Thread Srikar Dronamraju
@@ -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:

Re: [RFC][PATCH] Improving directed yield scalability for PLE handler

2012-09-10 Thread Srikar Dronamraju
* 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

Re: [PATCH RFC V3 2/3] kvm: Note down when cpu relax intercepted or pause loop exited

2012-07-13 Thread Srikar Dronamraju
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 =