• Andrew Morton's avatar
    [PATCH] sched: implement domains for i386 HT · e18e19ad
    Andrew Morton authored
    From: Nick Piggin <piggin@cyberone.com.au>
    
    The following patch builds a scheduling description for the i386
    architecture using cpu_sibling_map to set up SMT if CONFIG_SCHED_SMT is
    set.
    
    It could be made more fancy and collapse degenerate domains at runtime (ie.
    1 sibling per CPU, or 1 NUMA node in the computer).
    
    
    From: Zwane Mwaikambo <zwane@arm.linux.org.uk>
    
       This fixes an oops due to cpu_sibling_map being uninitialised when a
       system with no MP table (most UP boxen) boots a CONFIG_SMT kernel.  What
       also happens is that the cpu_group lists end up not being terminated
       properly, but this oops kills it first.  Patch tested on UP w/o MP table,
       2x P2 and UP Xeon w/ no siblings.
    
    From: "Martin J. Bligh" <mbligh@aracnet.com>,
          Nick Piggin <piggin@cyberone.com.au>
    
       Change arch_init_sched_domains to use cpu_online_map
    
    From: Anton Blanchard <anton@samba.org>
    
       Fix build with NR_CPUS > BITS_PER_LONG
    e18e19ad
processor.h 17 KB