1. 13 Nov, 2007 3 commits
    • Olof Johansson's avatar
      [POWERPC] Fix CONFIG_SMP=n build error on ppc64 · 9bafbb0c
      Olof Johansson authored
      The patch "KVM: fix !SMP build error" change the way smp_call_function()
      actually uses the passed in function names on non-SMP builds.  So
      previously it was never caught that the function passed in was never
      actually defined.
      
      This causes a build error on ppc64_defconfig + CONFIG_SMP=n:
      
      arch/powerpc/mm/tlb_64.c: In function 'pgtable_free_now':
      arch/powerpc/mm/tlb_64.c:71: error: 'pte_free_smp_sync' undeclared (first use in this function)
      arch/powerpc/mm/tlb_64.c:71: error: (Each undeclared identifier is reported only once
      arch/powerpc/mm/tlb_64.c:71: error: for each function it appears in.)
      
      So we need to define it even if CONFIG_SMP is off. Either that or ifdef
      out the smp_call_function() call, but that's ugly.
      Signed-off-by: default avatarOlof Johansson <olof@lixom.net>
      Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
      9bafbb0c
    • Becky Bruce's avatar
      [POWERPC] Avoid unpaired stwcx. on some processors · b64f87c1
      Becky Bruce authored
      The context switch code in the kernel issues a dummy stwcx. to clear the
      reservation, as recommended by the architecture.  However, some processors
      can have issues if this stwcx to address A occurs while the reservation
      is already held to a different address B.  To avoid this problem, the dummy
      stwcx. needs to be paired with a dummy lwarx to the same address.
      
      This adds the dummy lwarx, and creates a cpu feature bit to indicate
      which cpus are affected.  Tested on mpc8641_hpcn_defconfig in
      arch/powerpc; build tested in arch/ppc.
      Signed-off-by: default avatarBecky Bruce <becky.bruce@freescale.com>
      Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
      b64f87c1
    • Paul Mackerras's avatar
  2. 10 Nov, 2007 37 commits