1. 28 3月, 2006 2 次提交
    • J
      [PATCH] uml: fix build warnings in __get_user · bb83da05
      Jeff Dike 提交于
      Fix a gcc warning about losing qualifiers to the first argument of
      copy_from_user.  The typeof change for correctness, and fixes a lot of the
      warnings, but there are some cases where x has some extra qualifiers, like
      volatile, which copy_from_user can't know about.  For these, the void * cast
      seems to be necessary.
      
      Also cleaned up some of the whitespace and got rid of the emacs comment at the
      bottom.
      Signed-off-by: NJeff Dike <jdike@addtoit.com>
      Cc: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      bb83da05
    • O
      [PATCH] PM-Timer: don't use workaround if chipset is not buggy · dbffa471
      OGAWA Hirofumi 提交于
      Current timer_pm.c reads I/O port triple times, in order to avoid the bug
      of chipset.  But I/O port is slow.
      
      2.6.16 (pmtmr)
      Simple gettimeofday: 3.6532 microseconds
      
      2.6.16+patch (pmtmr)
      Simple gettimeofday: 1.4582 microseconds
      
      [if chip is buggy, probably it will be 7us or more in 4.2% of probability.]
      
      This patch adds blacklist of buggy chip, and if chip is not buggy, this
      uses fast normal version instead of slow workaround version.
      
      If chip is buggy, warnings "pmtmr is slow".  But sounds like there is gray
      zone.  I found the PIIX4 errata, but I couldn't find the ICH4 errata.  But
      some motherboard seems to have problem.
      
      So, if we found a ICH4, generate warnings, and use a workaround version.
      If user's ICH4 is good, the user can specify the "pmtmr_good" boot
      parameter to use fast version.
      Acked-by: NJohn Stultz <johnstul@us.ibm.com>
      Signed-off-by: NOGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      dbffa471
  2. 27 3月, 2006 38 次提交