1. 24 12月, 2009 3 次提交
    • A
      SYSCTL: Print binary sysctl warnings (nearly) only once · 4440095c
      Andi Kleen 提交于
      When printing legacy sysctls print the warning message
      for each of them only once.  This way there is a guarantee
      the syslog won't be flooded for any sane program.
      
      The original attempt at this made the tables non const and stored
      the flag inline.
      
      Linus suggested using a separate hash table for this, this is based on a
      code snippet from him.
      
      The hash implies this is not exact and can sometimes not print a
      new sysctl due to a hash collision, but in practice this should not
      be a problem
      
      I used a FNV32 hash over the binary string with a 32byte bitmap. This
      gives relatively little collisions when all the predefined binary sysctls
      are hashed:
      
      size 256
      bucket
      length      number
      0:          [25]
      1:          [67]
      2:          [88]
      3:          [47]
      4:          [22]
      5:          [6]
      6:          [1]
      
      The worst case is a single collision of 6 hash values.
      Signed-off-by: NAndi Kleen <ak@linux.intel.com>
      4440095c
    • L
      Merge branch 'drm-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/airlied/drm-2.6 · f42ecb28
      Linus Torvalds 提交于
      * 'drm-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/airlied/drm-2.6: (35 commits)
        drm/radeon/kms: add definitions for v4 power tables
        drm/radeon/kms: never combine LVDS with another encoder
        drm/radeon/kms: Check module arguments to be valid V2
        drm/radeon/kms: Avoid crash when trying to cleanup uninitialized structure
        drm/radeon/kms: add cvt mode if we only have lvds w/h and no edid (v4)
        drm/radeon/kms: add 3DC compression support
        drm/radeon/kms: allow rendering while no colorbuffer is set on r300
        drm/radeon/kms: enable memory clock reading on legacy (V2)
        drm/radeon/kms: prevent parallel AtomBIOS calls
        drm/radeon/kms: set proper default tv standard
        drm/radeon/kms: fix legacy rmx
        drm/radeon/kms/atom: fill in proper defines for digital setup
        drm/kms: silencing a false positive warning.
        drm/mm: fix logic for selection of best fit block
        drm/vmwgfx: Use TTM handles instead of SIDs as user-space surface handles.
        drm/vmwgfx: Return -ERESTARTSYS when interrupted by a signal.
        drm/vmwgfx: Fix unlocked ioctl and add proper access control
        drm/radeon: fix build on 64-bit with some compilers.
        drivers/gpu: Use kzalloc for allocating only one thing
        DRM: Rename clamp variable
        ...
      f42ecb28
    • S
      Fix usb_serial_probe() problem introduced by the recent kfifo changes · 119eecc8
      Stefani Seibold 提交于
      The USB serial code was a new user of the kfifo API, and it was missed
      when porting things to the new kfifo API.
      
      Please make the write_fifo in place.  Here is my patch to fix the
      regression and full ported version.
      Signed-off-by: NStefani Seibold <stefani@seibold.net>
      Reported-and-tested-by: NRafael J. Wysocki <rjw@sisk.pl>
      Cc: Greg KH <greg@kroah.com>
      Cc: Andrew Morton <akpm@linux-foundation.org>
      Cc: Alan Stern <stern@rowland.harvard.edu>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      119eecc8
  2. 23 12月, 2009 37 次提交