lkml.org 
[lkml]   [2013]   [Nov]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [RFC][PATCH v5 07/14] sched: get CPU's activity statistic
On Fri, Oct 18, 2013 at 01:52:20PM +0200, Vincent Guittot wrote:
> diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c
> index db9b871..7e26f65 100644
> --- a/kernel/sched/fair.c
> +++ b/kernel/sched/fair.c
> @@ -179,6 +179,11 @@ void sched_init_granularity(void)
> }
>
> #ifdef CONFIG_SMP
> +static unsigned long available_of(int cpu)
> +{
> + return cpu_rq(cpu)->cpu_available;
> +}
> +
> #ifdef CONFIG_SCHED_PACKING_TASKS
> /*
> * Save the id of the optimal CPU that should be used to pack small tasks

This hunk wants to be in the previous patch, as I'm fairly sure I saw
this function used there.


\
 
 \ /
  Last update: 2013-11-12 12:21    [W:0.269 / U:0.124 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site