1. 22 5月, 2007 5 次提交
    • B
      [POWERPC] Fix powerpc vmlinux.lds.S · 832a791c
      Benjamin Herrenschmidt 提交于
      Sam's recent change in 7664709b
      broke things for us because we ended up with *(.text.*) before
      *(.text), whereas previously *(.text) was first.  This was
      important because the start of the text section contains the
      kernel entry point.
      
      In fact, we don't need that *(.text.*) thing anymore and it
      incorrectly matched .text.init.refok, thus putting it before
      .text. .. ouch !
      Signed-off-by: NBenjamin Herrenschmidt <benh@kernel.crashing.org>
      Signed-off-by: NPaul Mackerras <paulus@samba.org>
      832a791c
    • A
      [POWERPC] Fix typo: MMCR0_PMA0 != MMCR0_PMAO · 177e9ea4
      Anton Blanchard 提交于
      pmc.c has:
      
      #ifndef MMCR0_PMA0
      #define MMCR0_PMA0     0
      
      This one took a while to find.  Unfortunately its the wrong define
      (number 0 vs letter O). Its probably worth removing this override, since
      if our includes get screwed up we will have the same (hard to debug)
      failure.
      
      Fix it simply for now, so that we can backport to stable.
      Signed-off-by: NAnton Blanchard <anton@samba.org>
      Signed-off-by: NPaul Mackerras <paulus@samba.org>
      177e9ea4
    • A
      [POWERPC] Add missing pmc_type fields in cpu_table · 2fae4985
      Anton Blanchard 提交于
      A number of cpu_table entries were missing the pmc_type field,
      which means that the sysfs entries for the performance monitor
      counters don't get created.  This adds them.
      Signed-off-by: NAnton Blanchard <anton@samba.org>
      Signed-off-by: NPaul Mackerras <paulus@samba.org>
      2fae4985
    • H
      [POWERPC] Fix smp_call_function to be preempt-safe · d3fdaed9
      Hugh Dickins 提交于
      smp_call_function_map() was not safe against preemption to another
      cpu: its test for removing self from map was outside the spinlock.
      Rearrange it a little to fix that.
      
      smp_call_function_single() was also wrong: now get_cpu() before
      excluding self, as other architectures do.
      Signed-off-by: NHugh Dickins <hugh@veritas.com>
      Signed-off-by: NPaul Mackerras <paulus@samba.org>
      d3fdaed9
    • A
      Detach sched.h from mm.h · e8edc6e0
      Alexey Dobriyan 提交于
      First thing mm.h does is including sched.h solely for can_do_mlock() inline
      function which has "current" dereference inside. By dealing with can_do_mlock()
      mm.h can be detached from sched.h which is good. See below, why.
      
      This patch
      a) removes unconditional inclusion of sched.h from mm.h
      b) makes can_do_mlock() normal function in mm/mlock.c
      c) exports can_do_mlock() to not break compilation
      d) adds sched.h inclusions back to files that were getting it indirectly.
      e) adds less bloated headers to some files (asm/signal.h, jiffies.h) that were
         getting them indirectly
      
      Net result is:
      a) mm.h users would get less code to open, read, preprocess, parse, ... if
         they don't need sched.h
      b) sched.h stops being dependency for significant number of files:
         on x86_64 allmodconfig touching sched.h results in recompile of 4083 files,
         after patch it's only 3744 (-8.3%).
      
      Cross-compile tested on
      
      	all arm defconfigs, all mips defconfigs, all powerpc defconfigs,
      	alpha alpha-up
      	arm
      	i386 i386-up i386-defconfig i386-allnoconfig
      	ia64 ia64-up
      	m68k
      	mips
      	parisc parisc-up
      	powerpc powerpc-up
      	s390 s390-up
      	sparc sparc-up
      	sparc64 sparc64-up
      	um-x86_64
      	x86_64 x86_64-up x86_64-defconfig x86_64-allnoconfig
      
      as well as my two usual configs.
      Signed-off-by: NAlexey Dobriyan <adobriyan@gmail.com>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      e8edc6e0
  2. 19 5月, 2007 2 次提交
  3. 17 5月, 2007 27 次提交
  4. 12 5月, 2007 6 次提交