1. 29 3月, 2011 1 次提交
    • T
      sparc: Use the new genirq functionality · fcd8d4f4
      Thomas Gleixner 提交于
      Make use of the new features in genirq:
      
      1) Set the chip flag IRCHIP_EOI_IF_HANDLED, which ensures in the
         core code that irq_eoi() is only called when the interrupt was
         handled. That removes the extra status check in the callback.
      
      2) Use the preflow handler, which is called from the fasteoi core code
         before the device handler. That avoids another status check and the
         open coded handler redirection.
      Signed-off-by: NThomas Gleixner <tglx@linutronix.de>
      Cc: sparclinux@vger.kernel.org
      fcd8d4f4
  2. 25 3月, 2011 1 次提交
    • K
      sparc32: Fix multiple RTC detections on SUN4D · 1c833bc3
      Kjetil Oftedal 提交于
      During the preparation for testing the recent changes made to the SUN4D
      specific code in the kernel by Sam Ravnborg the following was discovered:
      
      Since the removal of of_platform_bus_type (commit: eca39301 )
      multiboard SUN4Ds have not been able to boot. The kernel crashes due to a
      zero-pointer error encountered when registering multiple M48T59 RTCs
      (There is one on each board).
      
      A patch for the was previously submitted, but the problem was not a
      serious at that time, as it would only generate warnings. Now the kernel
      will crash and stop executing before the serial console has been started.
      (Crash output can be viewed by using the -p boot flag)
      Signed-off-by: NKjetil Oftedal <oftedal@gmail.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      1c833bc3
  3. 19 3月, 2011 3 次提交
  4. 17 3月, 2011 31 次提交
  5. 28 2月, 2011 1 次提交
  6. 16 2月, 2011 1 次提交
    • D
      sparc64: Fix NMI startup bug which also breaks perf. · b62818e5
      David S. Miller 提交于
      Doing NMI startup as an early initcall doesn't work because we need
      to have SMP started up by then.
      
      So we'd only NMI startup one cpu, which causes perf PMU grab to
      BUG because the nmi_active count isn't what it's supposed to be.
      
      This also points out that we don't have proper CPU up/down notifiers
      for the NMI code which will need to be fixed at some point.
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      b62818e5
  7. 09 2月, 2011 1 次提交
    • A
      sparc: fix size argument to find_next_zero_bit() · 711c71a0
      Akinobu Mita 提交于
      iommu_alloc_ctx() finds a zero bit in iommu->ctx_bitmap.  It starts
      searching from iommu->ctx_lowest_free to the end of the bitmap.
      But the size argument to find_next_zero_bit() in iommu_alloc_ctx()
      is wrong.  It should be the bitmap size, not the maximum size to
      search from the offset argument.
      
      Fortunately iommu->ctx_lowest_free is almost unused and it will not
      be more than 1. So the bug wasted only 1-bit at the end of
      iommu->ctx_bitmap.
      Signed-off-by: NAkinobu Mita <akinobu.mita@gmail.com>
      Cc: "David S. Miller" <davem@davemloft.net>
      Cc: sparclinux@vger.kernel.org
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      711c71a0
  8. 02 2月, 2011 1 次提交