1. 17 12月, 2009 1 次提交
  2. 04 12月, 2009 1 次提交
  3. 02 11月, 2009 1 次提交
  4. 01 10月, 2009 1 次提交
    • J
      MIPS: SMTC: Remove duplicate structure field initialization · b2651583
      Julia Lawall 提交于
      The definition of the irq_ipi structure has two initializations of the
      flags field.  This combines them.
      
      [Ralf: The issue was originally introduced by commit
      be4894196d79455f420dd7bb78be7dc73bec115c (linux-mips.org) rsp.
      033890b0 (kernel.org).  The original
      intention of the code was to initialize .flags with both flags ored together.
      The broken C code as actually implemented will be compiled by an equally
      broken gcc to use only the last initialization, that is IRQF_PERCPU
      which means this turned into an SMTC bug for 2.6.23 and newer.]
      
      The semantic match that finds this problem is as follows:
      (http://coccinelle.lip6.fr/)
      
      // <smpl>
      @r@
      identifier I, s, fld;
      position p0,p;
      expression E;
      @@
      
      struct I s =@p0 { ... .fld@p = E, ...};
      
      @s@
      identifier I, s, r.fld;
      position r.p0,p;
      expression E;
      @@
      
      struct I s =@p0 { ... .fld@p = E, ...};
      
      @script:python@
      p0 << r.p0;
      fld << r.fld;
      ps << s.p;
      pr << r.p;
      @@
      
      if int(ps[0].line)!=int(pr[0].line) or int(ps[0].column)!=int(pr[0].column):
        cocci.print_main(fld,p0)
      // </smpl>
      Signed-off-by: NJulia Lawall <julia@diku.dk>
      Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
      b2651583
  5. 24 9月, 2009 1 次提交
  6. 18 9月, 2009 1 次提交
  7. 04 8月, 2009 1 次提交
  8. 25 6月, 2009 1 次提交
  9. 17 6月, 2009 1 次提交
  10. 15 1月, 2009 1 次提交
    • M
      irq: update all arches for new irq_desc, fix · d2287f5e
      Mike Travis 提交于
      Impact: fix build errors
      
      Since the SPARSE IRQS changes redefined how the kstat irqs are
      organized, arch's must use the new accessor function:
      
      	kstat_incr_irqs_this_cpu(irq, DESC);
      
      If CONFIG_SPARSE_IRQS is set, then DESC is a pointer to the
      irq_desc which has a pointer to the kstat_irqs.  If not, then
      the .irqs field of struct kernel_stat is used instead.
      Signed-off-by: NMike Travis <travis@sgi.com>
      Signed-off-by: NIngo Molnar <mingo@elte.hu>
      d2287f5e
  11. 13 1月, 2009 1 次提交
  12. 13 12月, 2008 1 次提交
    • R
      cpumask: centralize cpu_online_map and cpu_possible_map · 98a79d6a
      Rusty Russell 提交于
      Impact: cleanup
      
      Each SMP arch defines these themselves.  Move them to a central
      location.
      
      Twists:
      1) Some archs (m32, parisc, s390) set possible_map to all 1, so we add a
         CONFIG_INIT_ALL_POSSIBLE for this rather than break them.
      
      2) mips and sparc32 '#define cpu_possible_map phys_cpu_present_map'.
         Those archs simply have phys_cpu_present_map replaced everywhere.
      
      3) Alpha defined cpu_possible_map to cpu_present_map; this is tricky
         so I just manipulate them both in sync.
      
      4) IA64, cris and m32r have gratuitous 'extern cpumask_t cpu_possible_map'
         declarations.
      Signed-off-by: NRusty Russell <rusty@rustcorp.com.au>
      Reviewed-by: NGrant Grundler <grundler@parisc-linux.org>
      Tested-by: NTony Luck <tony.luck@intel.com>
      Acked-by: NIngo Molnar <mingo@elte.hu>
      Cc: Mike Travis <travis@sgi.com>
      Cc: ink@jurassic.park.msu.ru
      Cc: rmk@arm.linux.org.uk
      Cc: starvik@axis.com
      Cc: tony.luck@intel.com
      Cc: takata@linux-m32r.org
      Cc: ralf@linux-mips.org
      Cc: grundler@parisc-linux.org
      Cc: paulus@samba.org
      Cc: schwidefsky@de.ibm.com
      Cc: lethal@linux-sh.org
      Cc: wli@holomorphy.com
      Cc: davem@davemloft.net
      Cc: jdike@addtoit.com
      Cc: mingo@redhat.com
      98a79d6a
  13. 04 10月, 2008 3 次提交
  14. 26 6月, 2008 1 次提交
    • J
      mips: convert to generic helpers for IPI function calls · 2f304c0a
      Jens Axboe 提交于
      This converts mips to use the new helpers for smp_call_function() and
      friends, and adds support for smp_call_function_single(). Not tested,
      but it compiles.
      
      mips shares the same IPI for smp_call_function() and
      smp_call_function_single(), since not all mips platforms have enough
      available IPIs to support seperate setups.
      
      Cc: Ralf Baechle <ralf@linux-mips.org>
      Signed-off-by: NJens Axboe <jens.axboe@oracle.com>
      2f304c0a
  15. 29 4月, 2008 2 次提交
  16. 03 2月, 2008 1 次提交
  17. 29 1月, 2008 1 次提交
  18. 30 10月, 2007 1 次提交
    • K
      [MIPS] SMTC: Allow control over TC assignment to vpe0. · be5f1f21
      Kevin D. Kissell 提交于
      Modify the SMTC initialization code to allow boot-time specification not
      only of how many VPEs and TCs to use, but also how many TCs out of the
      allowed pool are to be bound to VPE 0.  The new boot option is "vpe0tcs=N",
      where N is an integer.  Using it in combination with the existing options
      allows arbitrary assignments across the 2 VPEs of a 34K.  e.g. "maxtcs=3
       vpe0tcs=1" forces VPE0 to have 1 TC, while VPE1 has 2, and "maxtcs=4
      vpe0tcs=3" forces VPE0 to have 3 TCs, while VPE1 gets 1.  If no vpe0tcs
      option is specified, the traditional algorithm of evenly dividing TCs
      between available VPEs, with the odd "slop" going to VPE0, is retained.
      
      The reason for doing this is to allow a finer balancing of TCs which can
      handle I/O interrupts on Malta (those on VPE 0) and those which cannot.
      Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
      be5f1f21
  19. 12 10月, 2007 8 次提交
  20. 25 9月, 2007 1 次提交
  21. 27 8月, 2007 1 次提交
  22. 01 8月, 2007 5 次提交
  23. 11 7月, 2007 1 次提交
  24. 27 6月, 2007 1 次提交
  25. 21 6月, 2007 1 次提交
  26. 12 6月, 2007 1 次提交