lkml.org 
[lkml]   [2010]   [Jan]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    SubjectRe: [PATCH 2/2] powerpc: implement arch_scale_smt_power for Power7
    From
    Date
    On Mon, 2010-01-25 at 11:50 -0600, Joel Schopp wrote:
    > > Look at the cputhreads.h implementation ... Today we only support
    > > power-of-two numbers of threads.
    > >
    > I've run 3 threads using cpu hotplug to offline 1 of the 4. It's
    > certainly a stupid idea, but there you go.

    Oh, you mean you need to use the actual online count ? In which case,
    yes, you do indeed need to be a bit more careful... In this case though,
    you're probably better off special casing "3" :-)

    Cheers,
    Ben.




    \
     
     \ /
      Last update: 2010-01-26 05:31    [W:0.040 / U:1.540 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site