1. 19 7月, 2007 18 次提交
  2. 18 7月, 2007 1 次提交
    • R
      Freezer: make kernel threads nonfreezable by default · 83144186
      Rafael J. Wysocki 提交于
      Currently, the freezer treats all tasks as freezable, except for the kernel
      threads that explicitly set the PF_NOFREEZE flag for themselves.  This
      approach is problematic, since it requires every kernel thread to either
      set PF_NOFREEZE explicitly, or call try_to_freeze(), even if it doesn't
      care for the freezing of tasks at all.
      
      It seems better to only require the kernel threads that want to or need to
      be frozen to use some freezer-related code and to remove any
      freezer-related code from the other (nonfreezable) kernel threads, which is
      done in this patch.
      
      The patch causes all kernel threads to be nonfreezable by default (ie.  to
      have PF_NOFREEZE set by default) and introduces the set_freezable()
      function that should be called by the freezable kernel threads in order to
      unset PF_NOFREEZE.  It also makes all of the currently freezable kernel
      threads call set_freezable(), so it shouldn't cause any (intentional)
      change of behaviour to appear.  Additionally, it updates documentation to
      describe the freezing of tasks more accurately.
      
      [akpm@linux-foundation.org: build fixes]
      Signed-off-by: NRafael J. Wysocki <rjw@sisk.pl>
      Acked-by: NNigel Cunningham <nigel@nigel.suspend2.net>
      Cc: Pavel Machek <pavel@ucw.cz>
      Cc: Oleg Nesterov <oleg@tv-sign.ru>
      Cc: Gautham R Shenoy <ego@in.ibm.com>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      83144186
  3. 12 7月, 2007 1 次提交
    • A
      PCI: Change all drivers to use pci_device->revision · 44c10138
      Auke Kok 提交于
      Instead of all drivers reading pci config space to get the revision
      ID, they can now use the pci_device->revision member.
      
      This exposes some issues where drivers where reading a word or a dword
      for the revision number, and adding useless error-handling around the
      read. Some drivers even just read it for no purpose of all.
      
      In devices where the revision ID is being copied over and used in what
      appears to be the equivalent of hotpath, I have left the copy code
      and the cached copy as not to influence the driver's performance.
      
      Compile tested with make all{yes,mod}config on x86_64 and i386.
      Signed-off-by: NAuke Kok <auke-jan.h.kok@intel.com>
      Acked-by: NDave Jones <davej@redhat.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      44c10138
  4. 04 7月, 2007 2 次提交
    • J
      V4L/DVB (5816): Cx88-blackbird: fix vidioc_g_tuner never ending list of tuners · f057131f
      Jelle Foks 提交于
      v4l-info and other programs would loop indefinitely while querying the
      tuners for cx88-blackbird cards.
      
      The cause was that vidioc_g_tuner didn't return an error value for
      qctrl->id != 0, making the application think there is a never ending
      list of tuners...
      
      This patch adds the same index check as done in vidioc_g_tuner() in
      cx88-video.
      Signed-off-by: NJelle Foks <jelle@foks.8m.com>
      Signed-off-by: NMichael Krufky <mkrufky@linuxtv.org>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@infradead.org>
      f057131f
    • T
      V4L/DVB (5808): Bttv: fix v4l1 breaking the driver · 333408f2
      Trent Piepho 提交于
      If one uses a V4L *one* application, such as vlc or mplayer's v4l driver, as
      the first user after the driver is loaded, the driver wedges itself and will
      never capture properly.  Even if one uses a V4L2 application later, it still
      won't work.
      
      If one uses a V4L *two* application first, such as tvtime or mplayer's v4l2
      driver, then the driver will be ok.  One can then run a V4L1 application, and
      it will work.
      
      It turns out the problem is with norm changing and the crop support that was
      added in 2.6.21.  The driver defaults to PAL, and keeps the last norm it was
      set too across opens.  If one changes the norm via V4L1, the cropping
      parameters are not reset like they should be, and they'll remain broken across
      device opens.
      
      This patch removes the direct setting of btv->tvnorm in the V4L1 ioctl
      VIDIOCSCHAN handler.  The norm is set via the existing call to set_input(),
      which calls set_tvnorm(), which will reset the cropping values now that it is
      able to detect the norm change.
      Signed-off-by: NTrent Piepho <xyzzy@speakeasy.org>
      Signed-off-by: NMichael Krufky <mkrufky@linuxtv.org>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@infradead.org>
      333408f2
  5. 29 6月, 2007 2 次提交
  6. 08 6月, 2007 8 次提交
  7. 23 5月, 2007 6 次提交
  8. 16 5月, 2007 1 次提交
  9. 09 5月, 2007 1 次提交