1. 17 4月, 2008 1 次提交
  2. 07 3月, 2008 4 次提交
    • H
      [IA64] kprobes arch consolidation build fix · 45e18c22
      Harvey Harrison 提交于
      ia64 named their handler kprobes_fault_handler while all other
      arches used kprobe_fault_handler.  Change the function definition
      and header declaration.
      Signed-off-by: NHarvey Harrison <harvey.harrison@gmail.com>
      Signed-off-by: NTony Luck <tony.luck@intel.com>
      45e18c22
    • S
      [IA64] update efi region debugging to use MB, GB and TB as well as KB · 818c7e86
      Simon Horman 提交于
      When EFI_DEBUG is defined to a non-zero value in arch/ia64/kernel/efi.c,
      the efi memory regions are displayed. This patch enhances the
      display code in a few ways:
      
      1. Use TB, GB and MB as well as KB as units.
         Although this introduces rounding errors (KB doesn't as
         size is always a multiple of 4Kb), it does make
         things a lot more readable.
      
         Also as the range is also shown, it is possible to note the exact size
         if it is important. In my experience, the size field is mostly useful
         for getting a general idea of the size of a region.
      
         On the rx2620 that I use, there actually is an 8TB region (though not
         backed by physical memory, and 8TB really is a lot more readable than
         8589934592KB.
      
      2. pad the size field with leading spaces to further improve readability
      
         ...
         ... (   8MB)
         ... ( 928MB)
         ... (   3MB)
         ...
      
         vs
      
         ...
         ... (8MB)
         ... (928MB)
         ... (3MB)
         ...
      
      3. Pad the attr field out to 64bits using leading zeros,
         to further improve readability.
      
         ...
         mem05: type= 2, attr=0x0000000000000008, range=[0x0000000004000000-0x000000000481f000) (   8MB)
         mem06: type= 7, attr=0x0000000000000008, range=[0x000000000481f000-0x000000003e876000) ( 928MB)
         mem07: type= 5, attr=0x8000000000000008, range=[0x000000003e876000-0x000000003eb8e000) (   3MB)
         mem08: type= 4, attr=0x0000000000000008, range=[0x000000003eb8e000-0x000000003ee7a000) (   2MB)
         ...
      
         ...
         mem05: type= 2, attr=0x8, range=[0x0000000004000000-0x000000000481f000) (   8MB)
         mem06: type= 7, attr=0x8, range=[0x000000000481f000-0x000000003e876000) ( 928MB)
         mem07: type= 5, attr=0x8000000000000008, range=[0x000000003e876000-0x000000003eb8e000) (   3MB)
         mem08: type= 4, attr=0x8, range=[0x000000003eb8e000-0x000000003ee7a000) (   2MB)
         ...
      
      4. Use %d instead of %u for the index field, as i is a signed int.
      
      N.B: This code is not compiled unless EFI_DEBUG is non 0.
      Signed-off-by: NSimon Horman <horms@verge.net.au>
      Signed-off-by: NTony Luck <tony.luck@intel.com>
      818c7e86
    • H
      [IA64] remove remaining __FUNCTION__ occurrences · d4ed8084
      Harvey Harrison 提交于
      __FUNCTION__ is gcc-specific, use __func__
      
      Long lines have been kept where they exist, some small spacing changes
      have been done.
      Signed-off-by: NHarvey Harrison <harvey.harrison@gmail.com>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NTony Luck <tony.luck@intel.com>
      d4ed8084
    • B
      [IA64] remove CONFIG_SMP ifdef in ia64_send_ipi() · cd3244e6
      Bjorn Helgaas 提交于
      When !CONFIG_SMP, cpu_physical_id() is ia64_get_lid(), which is
      functionally identical to
      
          (ia64_getreg(_IA64_REG_CR_LID) >> 16) & 0xffff
      
      so there's no need for two versions of this code.
      Signed-off-by: NBjorn Helgaas <bjorn.helgaas@hp.com>
      Signed-off-by: NTony Luck <tony.luck@intel.com>
      cd3244e6
  3. 06 3月, 2008 6 次提交
  4. 05 3月, 2008 4 次提交
    • A
      [IA64] fix ia64 kprobes compilation · 9dad6f57
      Adrian Bunk 提交于
      This patch fixes the following compile error with a recent gcc:
        CC      kernel/kprobes.o
      /home/bunk/linux/kernel-2.6/git/linux-2.6/kernel/kprobes.c:1066: error: __ksymtab_jprobe_return causes a section type conflict
      Signed-off-by: NAdrian Bunk <bunk@kernel.org>
      Signed-off-by: NTony Luck <tony.luck@intel.com>
      9dad6f57
    • A
      [IA64] workaround tiger ia64_sal_get_physical_id_info hang · 6ed0dc5b
      Alex Chiang 提交于
      This fixes regression introduced in 113134fc
      
      Intel Tiger platforms hang when calling SAL_GET_PHYSICAL_ID_INFO
      instead of properly returning -1 for unimplemented, so add a
      version check.
      
      SGI Altix platforms have an incorrect SAL version hard-coded into
      their prom -- they encode 2.9, but actually implement 3.2 -- so
      fix it up and allow ia64_sal_get_physical_id_info to keep
      working.
      Signed-off-by: NAlex Chiang <achiang@hp.com>
      Acked-by: NRuss Anderson <rja@sgi.com>
      Signed-off-by: NTony Luck <tony.luck@intel.com>
      6ed0dc5b
    • K
      [IA64] Fix irq migration in multiple vector domain · a6cd6322
      Kenji Kaneshige 提交于
      Fix the problem that the following error message is sometimes displayed
      at irq migration when vector domain is enabled.
      
          "Unexpected interrupt vector %d on CPU %d is not mapped to any IRQ!"
      
      The cause of this problem is an interrupt is sent to the previous
      target CPU after cleaning up vector to irq mapping table. To clean up
      vector to irq map on the previous target CPU safty, change the irq
      migration in multiple vector domain as follows. The original idea is
      from x86 interrupt management code.
      
          - Delay vector to irq table cleanup until the interrupts are sent
            to new target CPUs. By this, it is ensured that target CPU is
            completely changed on the interrupt controller side.
      
          - Even after the interrupts are sent to new target CPUs, there can
            be pended interrupts remaining on the previous target CPU. So we
            need to delay clearning up vector to irq table until the pended
            interrupt is handled. For this, send IPI to the previous target
            CPU with lower priority vector and clean up vector to irq table
            in its handler.
      
      This patch affects only to irq migration code with multiple vector
      domain is enabled.
      Signed-off-by: NKenji Kaneshige <kaneshige.kenji@jp.fujitsu.com>
      Signed-off-by: NTony Luck <tony.luck@intel.com>
      a6cd6322
    • S
      [IA64] signal(ia64): add a signal stack overflow check · d7a6c68a
      Shi Weihua 提交于
      The similar check has been added to x86_32(i386) in commit
      id 83bd0102.
      So we add this check to ia64 and improve it a liitle bit in that
      we need to check for stack overflow only when the signal is on stack.
      Signed-off-by: NShi Weihua <shiwh@cn.fujitsu.com>
      Signed-off-by: NTony Luck <tony.luck@intel.com>
      d7a6c68a
  5. 09 2月, 2008 7 次提交
  6. 08 2月, 2008 2 次提交
  7. 07 2月, 2008 3 次提交
    • A
      ACPI: misc cleanups · e5685b9d
      Adrian Bunk 提交于
          This patch contains the following possible cleanups:
          - make the following needlessly global code static:
            - drivers/acpi/bay.c:dev_attr_eject
            - drivers/acpi/bay.c:dev_attr_present
            - drivers/acpi/dock.c:dev_attr_docked
            - drivers/acpi/dock.c:dev_attr_flags
            - drivers/acpi/dock.c:dev_attr_uid
            - drivers/acpi/dock.c:dev_attr_undock
            - drivers/acpi/pci_bind.c:acpi_pci_unbind()
            - drivers/acpi/pci_link.c:acpi_link_lock
            - drivers/acpi/sbs.c:acpi_sbs_callback()
            - drivers/acpi/sbshc.c:acpi_smbus_transaction()
            - drivers/acpi/sleep/main.c:acpi_sleep_prepare()
          - #if 0 the following unused global functions:
            - drivers/acpi/numa.c:acpi_unmap_pxm_to_node()
          - remove the following unused EXPORT_SYMBOL's:
            - acpi_register_gsi
            - acpi_unregister_gsi
            - acpi_strict
            - acpi_bus_receive_event
            - register_acpi_bus_type
            - unregister_acpi_bus_type
            - acpi_os_printf
            - acpi_os_sleep
            - acpi_os_stall
            - acpi_os_read_pci_configuration
            - acpi_os_create_semaphore
            - acpi_os_delete_semaphore
            - acpi_os_wait_semaphore
            - acpi_os_signal_semaphore
            - acpi_os_signal
            - acpi_pci_irq_enable
            - acpi_get_pxm
      Signed-off-by: NAdrian Bunk <bunk@kernel.org>
      Acked-by: NAlexey Starikovskiy <astarikovskiy@suse.de>
      Signed-off-by: NLen Brown <len.brown@intel.com>
      e5685b9d
    • A
      idle_regs() must be __cpuinit · 6b2fb3c6
      Adrian Bunk 提交于
      Fix the following section mismatch with CONFIG_HOTPLUG=n,
      CONFIG_HOTPLUG_CPU=y:
      
      WARNING: vmlinux.o(.text+0x399a6): Section mismatch: reference to .init.text.5:idle_regs (between 'fork_idle' and 'get_task_mm')
      Signed-off-by: NAdrian Bunk <bunk@kernel.org>
      Cc: Ingo Molnar <mingo@elte.hu>
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Cc: "Luck, Tony" <tony.luck@intel.com>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      6b2fb3c6
    • A
      calibrate_delay() must be __cpuinit · 6c81c32f
      Adrian Bunk 提交于
      calibrate_delay() must be __cpuinit, not __{dev,}init.
      
      I've verified that this is correct for all users.
      
      While doing the latter, I also did the following cleanups:
      - remove pointless additional prototypes in C files
      - ensure all users #include <linux/delay.h>
      
      This fixes the following section mismatches with CONFIG_HOTPLUG=n,
      CONFIG_HOTPLUG_CPU=y:
      
      WARNING: vmlinux.o(.text+0x1128d): Section mismatch: reference to .init.text.1:calibrate_delay (between 'check_cx686_slop' and 'set_cx86_reorder')
      WARNING: vmlinux.o(.text+0x25102): Section mismatch: reference to .init.text.1:calibrate_delay (between 'smp_callin' and 'cpu_coregroup_map')
      Signed-off-by: NAdrian Bunk <bunk@kernel.org>
      Cc: Ivan Kokshaysky <ink@jurassic.park.msu.ru>
      Cc: Richard Henderson <rth@twiddle.net>
      Cc: "Luck, Tony" <tony.luck@intel.com>
      Cc: Ralf Baechle <ralf@linux-mips.org>
      Cc: Paul Mackerras <paulus@samba.org>
      Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
      Cc: "David S. Miller" <davem@davemloft.net>
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Cc: Ingo Molnar <mingo@elte.hu>
      Cc: Christian Zankel <chris@zankel.net>
      Cc: Heiko Carstens <heiko.carstens@de.ibm.com>
      Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      6c81c32f
  8. 06 2月, 2008 4 次提交
  9. 05 2月, 2008 9 次提交