1. 17 3月, 2008 1 次提交
  2. 16 3月, 2008 8 次提交
  3. 15 3月, 2008 1 次提交
  4. 14 3月, 2008 2 次提交
  5. 13 3月, 2008 5 次提交
    • Z
      [NET]: Fix tbench regression in 2.6.25-rc1 · f1dd9c37
      Zhang Yanmin 提交于
      Comparing with kernel 2.6.24, tbench result has regression with
      2.6.25-rc1.
      
      1) On 2 quad-core processor stoakley: 4%.
      2) On 4 quad-core processor tigerton: more than 30%.
      
      bisect located below patch.
      
      b4ce9277 is first bad commit
      commit b4ce9277
      Author: Herbert Xu <herbert@gondor.apana.org.au>
      Date:   Tue Nov 13 21:33:32 2007 -0800
      
          [IPV6]: Move nfheader_len into rt6_info
      
          The dst member nfheader_len is only used by IPv6.  It's also currently
          creating a rather ugly alignment hole in struct dst.  Therefore this patch
          moves it from there into struct rt6_info.
      
      Above patch changes the cache line alignment, especially member
      __refcnt. I did a testing by adding 2 unsigned long pading before
      lastuse, so the 3 members, lastuse/__refcnt/__use, are moved to next
      cache line. The performance is recovered.
      
      I created a patch to rearrange the members in struct dst_entry.
      
      With Eric and Valdis Kletnieks's suggestion, I made finer arrangement.
      
      1) Move tclassid under ops in case CONFIG_NET_CLS_ROUTE=y. So
         sizeof(dst_entry)=200 no matter if CONFIG_NET_CLS_ROUTE=y/n. I
         tested many patches on my 16-core tigerton by moving tclassid to
         different place. It looks like tclassid could also have impact on
         performance.  If moving tclassid before metrics, or just don't move
         tclassid, the performance isn't good. So I move it behind metrics.
      
      2) Add comments before __refcnt.
      
      On 16-core tigerton:
      
      If CONFIG_NET_CLS_ROUTE=y, the result with below patch is about 18%
      better than the one without the patch;
      
      If CONFIG_NET_CLS_ROUTE=n, the result with below patch is about 30%
      better than the one without the patch.
      
      With 32bit 2.6.25-rc1 on 8-core stoakley, the new patch doesn't
      introduce regression.
      
      Thank Eric, Valdis, and David!
      Signed-off-by: NZhang Yanmin <yanmin.zhang@intel.com>
      Acked-by: NEric Dumazet <dada1@cosmosbay.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      f1dd9c37
    • T
      [POWERPC] Fix drivers/macintosh/mediabay.c when !CONFIG_ADB_PMU · a99d9a6e
      Tony Breeds 提交于
      When building drivers/macintosh/mediabay.c if CONFIG_ADB_PMU isn't
      defined we get:
      
      drivers/built-in.o: In function `media_bay_step':
      mediabay.c:(.text+0x92b84): undefined reference to `pmu_suspend'
      mediabay.c:(.text+0x92c08): undefined reference to `pmu_resume'
      
      Create empty place holders in that scenario.
      Signed-off-by: NTony Breeds <tony@bakeyournoodle.com>
      Signed-off-by: NPaul Mackerras <paulus@samba.org>
      a99d9a6e
    • T
      [POWERPC] Fix undefined pmu_sys_suspended compilation error · 07c941d0
      Tony Breeds 提交于
      pmu_sys_suspended is declared extern when:
      	defined(CONFIG_PM_SLEEP) && defined(CONFIG_PPC32)
      but only defined when:
      	defined(CONFIG_SUSPEND) && defined(CONFIG_PPC32)
      which is wrong.  Let's fix that.
      Signed-off-by: NTony Breeds <tony@bakeyournoodle.com>
      Signed-off-by: NPaul Mackerras <paulus@samba.org>
      07c941d0
    • D
      Remove <linux/genhd.h> from user-visible headers. · a8ae50ba
      David Woodhouse 提交于
      It was all wrapped in '#ifdef CONFIG_BLOCK' anyway, so userspace was
      getting nothing useful out of it. And the special #ifndef __KERNEL__
      version of 'struct partition' makes me inclined to promote an attitude
      of violence...
      
      Stick some comments on some of the #endifs too, while we're at it.
      Signed-off-by: NDavid Woodhouse <dwmw2@infradead.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      a8ae50ba
    • P
      nommu: Provide is_vmalloc_addr() stub. · 0738c4bb
      Paul Mundt 提交于
      Introduced in commit-id 9e2779fa and
      ifdef'ed out for nommu in 8ca3ed87, both
      approaches end up breaking the nommu build in different ways. An
      impressive feat for a 2-liner.
      
      Current is_vmalloc_addr() users fall in to two camps:
      
      	- Determining whether to use vfree()/kfree()
      	- Whether to do vmlist traversal (only /proc/kcore).
      
      Since we don't support /proc/kcore on nommu, that leaves the
      vfree()/kfree() determination use cases. nommu vfree() happens to be a
      wrapper to kfree() anyways, so is_vmalloc_addr() can always return 0
      and end up with the right behaviour.
      Signed-off-by: NPaul Mundt <lethal@linux-sh.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      0738c4bb
  6. 12 3月, 2008 7 次提交
  7. 11 3月, 2008 11 次提交
  8. 09 3月, 2008 2 次提交
  9. 08 3月, 2008 3 次提交