1. 15 1月, 2011 4 次提交
    • R
      ARM: fix missing branch in __error_a · cb4d3eae
      Russell King 提交于
      When DEBUG_LL is not set, we don't want __error_a re-entering
      __lookup_machine_type - we want it to go to the error function.  This
      used to be the case before we reorganized the layout for hotplug cpu,
      as we used to fall through to __error.  With the changed layout, we
      need an explicit branch here instead.
      Signed-off-by: NRussell King <rmk+kernel@arm.linux.org.uk>
      cb4d3eae
    • R
      ARM: fix /proc/$PID/stack on SMP · d5996b2f
      Russell King 提交于
      Rabin Vincent reports:
      | On SMP, this BUG() in save_stack_trace_tsk() can be easily triggered
      | from user space by reading /proc/$PID/stack, where $PID is any pid but
      | the current process:
      |
      |	if (tsk != current) {
      | #ifdef CONFIG_SMP
      |		/*
      |		 * What guarantees do we have here that 'tsk'
      |		 * is not running on another CPU?
      |		 */
      |		BUG();
      | #else
      
      Fix this by replacing the BUG() with an entry to terminate the stack
      trace, returning an empty trace - I'd rather not expose the dwarf
      unwinder to a volatile stack of a running thread.
      Reported-by: NRabin Vincent <rabin@rab.in>
      Tested-by: NRabin Vincent <rabin@rab.in>
      Signed-off-by: NRussell King <rmk+kernel@arm.linux.org.uk>
      d5996b2f
    • R
      ARM: Fix build regression on SA11x0, PXA, and H720x targets · 671289c2
      Russell King 提交于
      Build errors similar this appeared in todays kautobuild for the above
      targets:
      
      In file included from arch/arm/include/asm/pgtable.h:461,
                       from arch/arm/mach-pxa/generic.c:26:
      include/asm-generic/pgtable.h: In function 'ptep_test_and_clear_young':
      include/asm-generic/pgtable.h:29: error: dereferencing pointer to incomplete type
      
      None of the .c files including asm/pgtable.h with this error is using
      this header, so simply remove the include.
      Signed-off-by: NRussell King <rmk+kernel@arm.linux.org.uk>
      671289c2
    • D
      ARM: 6625/1: use memblock memory regions for "System RAM" I/O resources · 11b9369c
      Dima Zavin 提交于
      Do not use memory bank info to request the "system ram" resources as
      they do not track holes created by memblock_remove inside
      machine's reserve callback. If the removed memory is passed as
      platform_device's ioresource, then drivers that call
      request_mem_region would fail due to a conflict with the incorrectly
      configured system ram resource.
      
      Instead, iterate through the regions of memblock.memory and add
      those as "System RAM" resources.
      Signed-off-by: NDima Zavin <dima@android.com>
      Signed-off-by: NRussell King <rmk+kernel@arm.linux.org.uk>
      11b9369c
  2. 14 1月, 2011 6 次提交
  3. 13 1月, 2011 3 次提交
  4. 12 1月, 2011 15 次提交
  5. 11 1月, 2011 12 次提交