lkml.org 
[lkml]   [2012]   [Mar]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH] Extend mwait idle to optimize away CAL and RES interrupts to an idle CPU -v1
From
Date
On Fri, 2012-03-02 at 08:21 +0100, Ingo Molnar wrote:
> * Venki Pallipadi <venki@google.com> wrote:
> > Yes. This case will be problematic. So, we still need struct
> > create_idle work stuff even after percpu idle_task. Or was
> > Ingo's suggestion to do something along the lines of - init
> > any CPU's idle task from CPU 0's idle task?
>
> If the percpu area of possible CPUs is already allocated at this
> point then we should probably do that.
>
> If not then what is the problem with doing fork_idle() from the
> hotplug process context? Where does the assymetry in the dynamic
> case come from?

As far as I know, we limit the # of cpus that can be onlined to the
possible cpus determined at boot time and this doesn't change after
boot. percpu area of possible cpu's already allocated by this point.

Main exercise I think is to move the init_task to percpu area of cpu-0
and ensure that fork_idle() does the init properly (with out allocating
the memory but do the initialization done by the
copy_process/dup_task_struct etc)

thanks,
suresh



\
 
 \ /
  Last update: 2012-03-02 18:43    [W:0.072 / U:63.380 seconds]
©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site