1. 08 3月, 2010 1 次提交
    • U
      platform-drivers: move probe to .devinit.text in drivers/video · c2e13037
      Uwe Kleine-König 提交于
      A pointer to a probe callback is passed to the core via
      platform_driver_register and so the function must not disappear when the
      .init sections are discarded.  Otherwise (if also having HOTPLUG=y)
      unbinding and binding a device to the driver via sysfs will result in an
      oops as does a device being registered late.
      
      An alternative to this patch is using platform_driver_probe instead of
      platform_driver_register plus removing the pointer to the probe function
      from the struct platform_driver.
      Signed-off-by: NUwe Kleine-König <u.kleine-koenig@pengutronix.de>
      Cc: Adrian Bunk <bunk@stusta.de>
      Cc: Alberto Mardegan <mardy@users.sourceforge.net>
      Cc: Andrew Morton <akpm@linux-foundation.org>
      Cc: Andriy Skulysh <askulysh@gmail.com>
      Cc: Antonino Daplas <adaplas@gmail.com>
      Cc: Anton Vorontsov <avorontsov@ru.mvista.com>
      Cc: Ben Dooks <ben-linux@fluff.org>
      Cc: Chandramouli Narayanan <mouli@linux.intel.com>
      Cc: Christoph Hellwig <hch@lst.de>
      Cc: Frans Pop <elendil@planet.nl>
      Cc: Geert Uytterhoeven <Geert.Uytterhoeven@sonycom.com>
      Cc: Greg Kroah-Hartman <gregkh@suse.de>
      Cc: Helge Deller <deller@gmx.de>
      Cc: Huang Ying <ying.huang@intel.com>
      Cc: Ian Molton <spyro@f2s.com>
      Cc: Joshua Kinard <kumba@gentoo.org>
      Cc: Kaj-Michael Lang <milang@tal.org>
      Cc: Krzysztof Helt <krzysztof.h1@poczta.fm>
      Cc: linux-fbdev-devel@lists.sourceforge.net
      Cc: Maciej W. Rozycki <macro@linux-mips.org>
      Cc: Magnus Damm <damm@igel.co.jp>
      Cc: Martin Michlmayr <tbm@cyrius.com>
      Cc: Matthias Kaehlcke <matthias@kaehlcke.net>
      Cc: Paul Mundt <lethal@linux-sh.org>
      Cc: Pavel Machek <pavel@suse.cz>
      Cc: Philipp Zabel <philipp.zabel@gmail.com>
      Cc: Richard Purdie <rpurdie@rpsys.net>
      Cc: Roel Kluin <roel.kluin@gmail.com>
      Cc: Roland Stigge <stigge@antcom.de>
      Cc: Russell King <rmk+kernel@arm.linux.org.uk>
      Cc: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
      Cc: Vincent Sanders <vince@simtec.co.uk>
      Cc: Yoichi Yuasa <yoichi_yuasa@tripeaks.co.jp>
      Acked-by: NRalf Baechle <ralf@linux-mips.org>
      Acked-by: NArnaud Patard <arnaud.patard@rtp-net.org>
      Acked-by: NJames Simmons <jsimmons@infradead.org>
      Acked-by: NPeter Jones <pjones@redhat.com>
      Acked-by: NJaya Kumar <jayakumar.lkml@gmail.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      c2e13037
  2. 16 9月, 2009 1 次提交
  3. 14 4月, 2009 1 次提交
  4. 25 3月, 2009 1 次提交
  5. 22 2月, 2009 1 次提交
  6. 27 11月, 2008 1 次提交
    • R
      [ARM] remove memzero() · 59f0cb0f
      Russell King 提交于
      As suggested by Andrew Morton, remove memzero() - it's not supported
      on other architectures so use of it is a potential build breaking bug.
      Since the compiler optimizes memset(x,0,n) to __memzero() perfectly
      well, we don't miss out on the underlying benefits of memzero().
      Signed-off-by: NRussell King <rmk+kernel@arm.linux.org.uk>
      59f0cb0f
  7. 07 8月, 2008 2 次提交
  8. 25 7月, 2008 2 次提交
  9. 17 10月, 2007 1 次提交
  10. 18 12月, 2006 1 次提交
  11. 05 10月, 2006 1 次提交
    • D
      IRQ: Maintain regs pointer globally rather than passing to IRQ handlers · 7d12e780
      David Howells 提交于
      Maintain a per-CPU global "struct pt_regs *" variable which can be used instead
      of passing regs around manually through all ~1800 interrupt handlers in the
      Linux kernel.
      
      The regs pointer is used in few places, but it potentially costs both stack
      space and code to pass it around.  On the FRV arch, removing the regs parameter
      from all the genirq function results in a 20% speed up of the IRQ exit path
      (ie: from leaving timer_interrupt() to leaving do_IRQ()).
      
      Where appropriate, an arch may override the generic storage facility and do
      something different with the variable.  On FRV, for instance, the address is
      maintained in GR28 at all times inside the kernel as part of general exception
      handling.
      
      Having looked over the code, it appears that the parameter may be handed down
      through up to twenty or so layers of functions.  Consider a USB character
      device attached to a USB hub, attached to a USB controller that posts its
      interrupts through a cascaded auxiliary interrupt controller.  A character
      device driver may want to pass regs to the sysrq handler through the input
      layer which adds another few layers of parameter passing.
      
      I've build this code with allyesconfig for x86_64 and i386.  I've runtested the
      main part of the code on FRV and i386, though I can't test most of the drivers.
      I've also done partial conversion for powerpc and MIPS - these at least compile
      with minimal configurations.
      
      This will affect all archs.  Mostly the changes should be relatively easy.
      Take do_IRQ(), store the regs pointer at the beginning, saving the old one:
      
      	struct pt_regs *old_regs = set_irq_regs(regs);
      
      And put the old one back at the end:
      
      	set_irq_regs(old_regs);
      
      Don't pass regs through to generic_handle_irq() or __do_IRQ().
      
      In timer_interrupt(), this sort of change will be necessary:
      
      	-	update_process_times(user_mode(regs));
      	-	profile_tick(CPU_PROFILING, regs);
      	+	update_process_times(user_mode(get_irq_regs()));
      	+	profile_tick(CPU_PROFILING);
      
      I'd like to move update_process_times()'s use of get_irq_regs() into itself,
      except that i386, alone of the archs, uses something other than user_mode().
      
      Some notes on the interrupt handling in the drivers:
      
       (*) input_dev() is now gone entirely.  The regs pointer is no longer stored in
           the input_dev struct.
      
       (*) finish_unlinks() in drivers/usb/host/ohci-q.c needs checking.  It does
           something different depending on whether it's been supplied with a regs
           pointer or not.
      
       (*) Various IRQ handler function pointers have been moved to type
           irq_handler_t.
      Signed-Off-By: NDavid Howells <dhowells@redhat.com>
      (cherry picked from 1b16e7ac850969f38b375e511e3fa2f474a33867 commit)
      7d12e780
  12. 03 7月, 2006 1 次提交
  13. 01 7月, 2006 1 次提交
  14. 21 3月, 2006 1 次提交
  15. 15 1月, 2006 1 次提交
  16. 09 1月, 2006 1 次提交
  17. 10 11月, 2005 1 次提交
  18. 07 11月, 2005 1 次提交
    • A
      [PATCH] fbcon/fbdev: Move softcursor out of fbdev to fbcon · c465e05a
      Antonino A. Daplas 提交于
      According to Jon Smirl, filling in the field fb_cursor with soft_cursor for
      drivers that do not support hardware cursors is redundant.  The soft_cursor
      function is usable by all drivers because it is just a wrapper around
      fb_imageblit.  And because soft_cursor is an fbcon-specific hook, the file is
      moved to the console directory.
      
      Thus, drivers that do not support hardware cursors can leave the fb_cursor
      field blank.  For drivers that do, they can fill up this field with their own
      version.
      
      The end result is a smaller code size.  And if the framebuffer console is not
      loaded, module/kernel size is also reduced because the soft_cursor module will
      also not be loaded.
      Signed-off-by: NAntonino Daplas <adaplas@pol.net>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      c465e05a
  19. 30 10月, 2005 1 次提交
  20. 29 10月, 2005 1 次提交
  21. 15 10月, 2005 1 次提交
  22. 07 8月, 2005 1 次提交
  23. 17 4月, 2005 2 次提交