[PATCH] cgroup: Relax restrictions on kernel threads moving out of root cpu cgroup

2021-04-06 Thread Pavankumar Kondeti
/+/f08f049de11c15a4251cb1db08cf0bee20bd9b59 Signed-off-by: Pavankumar Kondeti --- v2: - Added cgroup_task_migration_allowed() wrapper function kernel/cgroup/cgroup-internal.h | 28 +++- kernel/cgroup/cgroup-v1.c | 2 +- kernel/cgroup/cgroup.c | 13 - 3 files changed, 32

[PATCH] cgroup: Relax restrictions on kernel threads moving out of root cpu cgroup

2021-04-06 Thread Pavankumar Kondeti
under CONFIG_RT_GROUP_SCHED. This allows all kernel threads to be moved out of root cpu cgroup if the kernel does not enable RT group scheduling. [1] https://android.googlesource.com/kernel/common/+/f08f049de11c15a4251cb1db08cf0bee20bd9b59 Signed-off-by: Pavankumar Kondeti --- kernel/cgroup/cgroup

[RESEND PATCH V3] PM / EM: Micro optimization in em_cpu_energy

2020-11-27 Thread Pavankumar Kondeti
When the sum of the utilization of CPUs in a power domain is zero, return the energy as 0 without doing any computations. Acked-by: Quentin Perret Reviewed-by: Dietmar Eggemann Signed-off-by: Pavankumar Kondeti --- include/linux/energy_model.h | 3 +++ 1 file changed, 3 insertions(+) diff

[PATCH V3] PM / EM: Micro optimization in em_cpu_energy

2020-11-23 Thread Pavankumar Kondeti
When the sum of the utilization of CPUs in a performance domain is zero, return the energy as 0 without doing any computations. Signed-off-by: Pavankumar Kondeti --- V3: %s/power/performance as corrected by Quentin V2: Fixed the function name in the commit message. include/linux/energy_model.h

[PATCH V2] PM / EM: Micro optimization in em_cpu_energy

2020-11-23 Thread Pavankumar Kondeti
When the sum of the utilization of CPUs in a power domain is zero, return the energy as 0 without doing any computations. Signed-off-by: Pavankumar Kondeti --- V2: Fixed the function name in the commit message. include/linux/energy_model.h | 3 +++ 1 file changed, 3 insertions(+) diff --git

[PATCH] PM / EM: Micro optimization in em_pd_energy

2020-11-23 Thread Pavankumar Kondeti
When the sum of the utilization of CPUs in a power domain is zero, return the energy as 0 without doing any computations. Signed-off-by: Pavankumar Kondeti --- include/linux/energy_model.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/linux/energy_model.h b/include/linux

[PATCH] kthread: Use TASK_IDLE state for newly created kernel threads

2020-05-20 Thread Pavankumar Kondeti
. Signed-off-by: Pavankumar Kondeti --- kernel/kthread.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/kernel/kthread.c b/kernel/kthread.c index bfbfa48..b74ed8e 100644 --- a/kernel/kthread.c +++ b/kernel/kthread.c @@ -250,7 +250,7 @@ static int kthread(void *_create

[tip: sched/urgent] sched/debug: Fix requested task uclamp values shown in procfs

2020-05-19 Thread tip-bot2 for Pavankumar Kondeti
The following commit has been merged into the sched/urgent branch of tip: Commit-ID: ad32bb41fca67936c0c1d6d0bdd6d3e2e9c5432f Gitweb: https://git.kernel.org/tip/ad32bb41fca67936c0c1d6d0bdd6d3e2e9c5432f Author:Pavankumar Kondeti AuthorDate:Sun, 10 May 2020 18:26:41 +05:30

[PATCH v2] sched/debug: Fix requested task uclamp values shown in procfs

2020-05-10 Thread Pavankumar Kondeti
values from p->uclamp_req. Fixes: 96e74ebf8d59 ("sched/debug: Add task uclamp values to SCHED_DEBUG procfs") Tested-and-reviewed-by: Valentin Schneider Signed-off-by: Pavankumar Kondeti --- V2: Added "requested" prefix (suggested by Valentin) kernel/sched/debug.c | 4 ++--

[PATCH] sched/debug: Fix requested task uclamp values shown in procfs

2020-05-10 Thread Pavankumar Kondeti
values from p->uclamp_req. Fixes: 96e74ebf8d59 ("sched/debug: Add task uclamp values to SCHED_DEBUG procfs") Signed-off-by: Pavankumar Kondeti --- kernel/sched/debug.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/sched/debug.c b/kernel/sched/debug.c ind

[tip:smp/hotplug] cpu/hotplug: Abort disabling secondary CPUs if wakeup is pending

2019-06-12 Thread tip-bot for Pavankumar Kondeti
Commit-ID: a66d955e910ab0e598d7a7450cbe6139f52befe7 Gitweb: https://git.kernel.org/tip/a66d955e910ab0e598d7a7450cbe6139f52befe7 Author: Pavankumar Kondeti AuthorDate: Mon, 3 Jun 2019 10:01:03 +0530 Committer: Thomas Gleixner CommitDate: Wed, 12 Jun 2019 11:03:05 +0200 cpu/hotplug

[PATCH] cpu/hotplug: Abort disabling secondary CPUs if wakeup is pending

2019-06-02 Thread Pavankumar Kondeti
Signed-off-by: Pavankumar Kondeti --- kernel/cpu.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/kernel/cpu.c b/kernel/cpu.c index f2ef104..784b33d 100644 --- a/kernel/cpu.c +++ b/kernel/cpu.c @@ -1221,6 +1221,13 @@ int freeze_secondary_cpus(int primary) for_each_onli

[PATCH] sched, trace: Fix prev_state output in sched_switch tracepoint

2018-10-30 Thread Pavankumar Kondeti
ate_index() uses fls() which considers the LSB as 1. Left shifting 1 by this value gives an incorrect mapping to the task state. Fix this by decrementing the value returned by __get_task_state() before shifting. Fixes: 3f5fe9fef5b2 ("sched/debug: Fix task state recording/printout") Sig

[PATCH] sched, trace: Fix prev_state output in sched_switch tracepoint

2018-10-30 Thread Pavankumar Kondeti
ate_index() uses fls() which considers the LSB as 1. Left shifting 1 by this value gives an incorrect mapping to the task state. Fix this by decrementing the value returned by __get_task_state() before shifting. Fixes: 3f5fe9fef5b2 ("sched/debug: Fix task state recording/printout") Sig

[RESEND] [PATCH] tracing: fix softirq flag detection

2016-12-09 Thread Pavankumar Kondeti
-by: Pavankumar Kondeti <pkond...@codeaurora.org> --- kernel/trace/trace.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/trace/trace.c b/kernel/trace/trace.c index ae68222..1d0f1a1 100644 --- a/kernel/trace/trace.c +++ b/kernel/trace/trace.c @@ -1685,7 +

[RESEND] [PATCH] tracing: fix softirq flag detection

2016-12-09 Thread Pavankumar Kondeti
-by: Pavankumar Kondeti --- kernel/trace/trace.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/trace/trace.c b/kernel/trace/trace.c index ae68222..1d0f1a1 100644 --- a/kernel/trace/trace.c +++ b/kernel/trace/trace.c @@ -1685,7 +1685,7 @@ tracing_generic_entry_update(struct

[PATCH] tracing: fix "softirq" flag detection

2016-12-06 Thread Pavankumar Kondeti
: I084531ce806e0f7d42a38be0a7ad45977c43d158 Signed-off-by: Pavankumar Kondeti <pkond...@codeaurora.org> --- kernel/trace/trace.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/trace/trace.c b/kernel/trace/trace.c index ae68222..1d0f1a1 100644 --- a/kernel/trace/trace.c +++ b/

[PATCH] tracing: fix "softirq" flag detection

2016-12-06 Thread Pavankumar Kondeti
: I084531ce806e0f7d42a38be0a7ad45977c43d158 Signed-off-by: Pavankumar Kondeti --- kernel/trace/trace.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/trace/trace.c b/kernel/trace/trace.c index ae68222..1d0f1a1 100644 --- a/kernel/trace/trace.c +++ b/kernel/trace/trace.c @@ -1685,7

Re: Migrated CFS task getting an unfair advantage

2016-03-09 Thread pavankumar kondeti
Hi Peter, On Wed, Mar 9, 2016 at 5:34 PM, Peter Zijlstra wrote: > On Wed, Mar 09, 2016 at 02:52:57PM +0530, Pavan Kondeti wrote: > >> When a CFS task is enqueued during migration (load balance or change in >> affinity), its vruntime is normalized before updating the current

Re: Migrated CFS task getting an unfair advantage

2016-03-09 Thread pavankumar kondeti
Hi Peter, On Wed, Mar 9, 2016 at 5:34 PM, Peter Zijlstra wrote: > On Wed, Mar 09, 2016 at 02:52:57PM +0530, Pavan Kondeti wrote: > >> When a CFS task is enqueued during migration (load balance or change in >> affinity), its vruntime is normalized before updating the current and >>