]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
Merge branch 'x86/um-header' of git://git.kernel.org/pub/scm/linux/kernel/git/tip...
authorLinus Torvalds <torvalds@linux-foundation.org>
Thu, 23 Oct 2008 17:22:01 +0000 (10:22 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 23 Oct 2008 17:22:01 +0000 (10:22 -0700)
* 'x86/um-header' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip: (26 commits)
  x86: canonicalize remaining header guards
  x86: drop double underscores from header guards
  x86: Fix ASM_X86__ header guards
  x86, um: get rid of uml-config.h
  x86, um: get rid of arch/um/Kconfig.arch
  x86, um: get rid of arch/um/os symlink
  x86, um: get rid of excessive includes of uml-config.h
  x86, um: get rid of header symlinks
  x86, um: merge Kconfig.i386 and Kconfig.x86_64
  x86, um: get rid of sysdep symlink
  x86, um: trim the junk from uml ptrace-*.h
  x86, um: take vm-flags.h to sysdep
  x86, um: get rid of uml asm/arch
  x86, um: get rid of uml highmem.h
  x86, um: get rid of uml unistd.h
  x86, um: get rid of system.h -> system.h include
  x86, um: uml atomic.h is not needed anymore
  x86, um: untangle uml ldt.h
  x86, um: get rid of more uml asm/arch uses
  x86, um: remove dead header (uml module-generic.h; never used these days)
  ...

593 files changed:
Makefile
arch/ia64/ia32/audit.c
arch/powerpc/include/asm/signal.h
arch/powerpc/kernel/signal.h
arch/um/Kconfig.common [new file with mode: 0644]
arch/um/Kconfig.rest [new file with mode: 0644]
arch/um/Kconfig.um [moved from arch/um/Kconfig with 77% similarity]
arch/um/Kconfig.x86 [moved from arch/um/Kconfig.i386 with 59% similarity]
arch/um/Kconfig.x86_64 [deleted file]
arch/um/Makefile
arch/um/Makefile-os-Linux
arch/um/drivers/Makefile
arch/um/include/asm/a.out-core.h [moved from include/asm-um/a.out-core.h with 100% similarity]
arch/um/include/asm/apic.h [moved from include/asm-um/apic.h with 100% similarity]
arch/um/include/asm/auxvec.h [moved from include/asm-um/auxvec.h with 100% similarity]
arch/um/include/asm/bugs.h [moved from include/asm-um/bugs.h with 100% similarity]
arch/um/include/asm/cache.h [moved from include/asm-um/cache.h with 100% similarity]
arch/um/include/asm/checksum.h [moved from include/asm-um/checksum.h with 100% similarity]
arch/um/include/asm/common.lds.S [moved from include/asm-um/common.lds.S with 100% similarity]
arch/um/include/asm/cputime.h [moved from include/asm-um/cputime.h with 100% similarity]
arch/um/include/asm/current.h [moved from include/asm-um/current.h with 100% similarity]
arch/um/include/asm/delay.h [moved from include/asm-um/delay.h with 100% similarity]
arch/um/include/asm/desc.h [moved from include/asm-um/desc.h with 100% similarity]
arch/um/include/asm/device.h [moved from include/asm-um/device.h with 100% similarity]
arch/um/include/asm/dma-mapping.h [moved from include/asm-um/dma-mapping.h with 100% similarity]
arch/um/include/asm/dma.h [moved from include/asm-um/dma.h with 100% similarity]
arch/um/include/asm/emergency-restart.h [moved from include/asm-um/emergency-restart.h with 100% similarity]
arch/um/include/asm/fixmap.h [moved from include/asm-um/fixmap.h with 99% similarity]
arch/um/include/asm/futex.h [moved from include/asm-um/futex.h with 100% similarity]
arch/um/include/asm/hardirq.h [moved from include/asm-um/hardirq.h with 100% similarity]
arch/um/include/asm/hw_irq.h [moved from include/asm-um/hw_irq.h with 100% similarity]
arch/um/include/asm/io.h [moved from include/asm-um/io.h with 100% similarity]
arch/um/include/asm/irq.h [moved from include/asm-um/irq.h with 100% similarity]
arch/um/include/asm/irq_regs.h [moved from include/asm-um/irq_regs.h with 100% similarity]
arch/um/include/asm/irq_vectors.h [moved from include/asm-um/irq_vectors.h with 100% similarity]
arch/um/include/asm/irqflags.h [moved from include/asm-um/irqflags.h with 100% similarity]
arch/um/include/asm/kdebug.h [moved from include/asm-um/kdebug.h with 100% similarity]
arch/um/include/asm/kmap_types.h [moved from include/asm-um/kmap_types.h with 100% similarity]
arch/um/include/asm/mmu.h [moved from include/asm-um/mmu.h with 100% similarity]
arch/um/include/asm/mmu_context.h [moved from include/asm-um/mmu_context.h with 100% similarity]
arch/um/include/asm/mutex.h [moved from include/asm-um/mutex.h with 100% similarity]
arch/um/include/asm/page.h [moved from include/asm-um/page.h with 99% similarity]
arch/um/include/asm/page_offset.h [moved from include/asm-um/page_offset.h with 100% similarity]
arch/um/include/asm/param.h [moved from include/asm-um/param.h with 100% similarity]
arch/um/include/asm/pci.h [moved from include/asm-um/pci.h with 100% similarity]
arch/um/include/asm/pda.h [moved from include/asm-um/pda.h with 100% similarity]
arch/um/include/asm/pgalloc.h [moved from include/asm-um/pgalloc.h with 100% similarity]
arch/um/include/asm/pgtable-2level.h [moved from include/asm-um/pgtable-2level.h with 100% similarity]
arch/um/include/asm/pgtable-3level.h [moved from include/asm-um/pgtable-3level.h with 100% similarity]
arch/um/include/asm/pgtable.h [moved from include/asm-um/pgtable.h with 97% similarity]
arch/um/include/asm/processor-generic.h [moved from include/asm-um/processor-generic.h with 100% similarity]
arch/um/include/asm/ptrace-generic.h [moved from include/asm-um/ptrace-generic.h with 97% similarity]
arch/um/include/asm/required-features.h [moved from include/asm-um/required-features.h with 100% similarity]
arch/um/include/asm/sections.h [moved from include/asm-um/sections.h with 100% similarity]
arch/um/include/asm/segment.h [moved from include/asm-um/segment.h with 100% similarity]
arch/um/include/asm/setup.h [moved from include/asm-um/setup.h with 100% similarity]
arch/um/include/asm/smp.h [moved from include/asm-um/smp.h with 100% similarity]
arch/um/include/asm/suspend.h [moved from include/asm-um/suspend.h with 100% similarity]
arch/um/include/asm/system.h [moved from include/asm-um/system-generic.h with 79% similarity]
arch/um/include/asm/thread_info.h [moved from include/asm-um/thread_info.h with 100% similarity]
arch/um/include/asm/timex.h [moved from include/asm-um/timex.h with 100% similarity]
arch/um/include/asm/tlb.h [moved from include/asm-um/tlb.h with 100% similarity]
arch/um/include/asm/tlbflush.h [moved from include/asm-um/tlbflush.h with 100% similarity]
arch/um/include/asm/topology.h [moved from include/asm-um/topology.h with 100% similarity]
arch/um/include/asm/uaccess.h [moved from include/asm-um/uaccess.h with 100% similarity]
arch/um/include/asm/xor.h [moved from include/asm-um/xor.h with 100% similarity]
arch/um/include/shared/aio.h [moved from arch/um/include/aio.h with 100% similarity]
arch/um/include/shared/arch.h [moved from arch/um/include/arch.h with 100% similarity]
arch/um/include/shared/as-layout.h [moved from arch/um/include/as-layout.h with 98% similarity]
arch/um/include/shared/chan_kern.h [moved from arch/um/include/chan_kern.h with 100% similarity]
arch/um/include/shared/chan_user.h [moved from arch/um/include/chan_user.h with 100% similarity]
arch/um/include/shared/common-offsets.h [moved from arch/um/include/common-offsets.h with 80% similarity]
arch/um/include/shared/elf_user.h [moved from arch/um/include/elf_user.h with 100% similarity]
arch/um/include/shared/frame_kern.h [moved from arch/um/include/frame_kern.h with 100% similarity]
arch/um/include/shared/init.h [moved from arch/um/include/init.h with 100% similarity]
arch/um/include/shared/initrd.h [moved from arch/um/include/initrd.h with 100% similarity]
arch/um/include/shared/irq_kern.h [moved from arch/um/include/irq_kern.h with 100% similarity]
arch/um/include/shared/irq_user.h [moved from arch/um/include/irq_user.h with 100% similarity]
arch/um/include/shared/kern.h [moved from arch/um/include/kern.h with 100% similarity]
arch/um/include/shared/kern_util.h [moved from arch/um/include/kern_util.h with 100% similarity]
arch/um/include/shared/ldt.h [moved from include/asm-um/ldt.h with 95% similarity]
arch/um/include/shared/line.h [moved from arch/um/include/line.h with 100% similarity]
arch/um/include/shared/longjmp.h [moved from arch/um/include/longjmp.h with 100% similarity]
arch/um/include/shared/mconsole.h [moved from arch/um/include/mconsole.h with 100% similarity]
arch/um/include/shared/mconsole_kern.h [moved from arch/um/include/mconsole_kern.h with 100% similarity]
arch/um/include/shared/mem.h [moved from arch/um/include/mem.h with 100% similarity]
arch/um/include/shared/mem_kern.h [moved from arch/um/include/mem_kern.h with 100% similarity]
arch/um/include/shared/mem_user.h [moved from arch/um/include/mem_user.h with 100% similarity]
arch/um/include/shared/net_kern.h [moved from arch/um/include/net_kern.h with 100% similarity]
arch/um/include/shared/net_user.h [moved from arch/um/include/net_user.h with 100% similarity]
arch/um/include/shared/os.h [moved from arch/um/include/os.h with 99% similarity]
arch/um/include/shared/process.h [moved from arch/um/include/process.h with 100% similarity]
arch/um/include/shared/ptrace_user.h [moved from arch/um/include/ptrace_user.h with 100% similarity]
arch/um/include/shared/registers.h [moved from arch/um/include/registers.h with 100% similarity]
arch/um/include/shared/sigio.h [moved from arch/um/include/sigio.h with 100% similarity]
arch/um/include/shared/skas/mm_id.h [moved from arch/um/include/skas/mm_id.h with 100% similarity]
arch/um/include/shared/skas/proc_mm.h [moved from arch/um/include/skas/proc_mm.h with 100% similarity]
arch/um/include/shared/skas/skas.h [moved from arch/um/include/skas/skas.h with 100% similarity]
arch/um/include/shared/skas/stub-data.h [moved from arch/um/include/skas/stub-data.h with 100% similarity]
arch/um/include/shared/skas_ptrace.h [moved from arch/um/include/skas_ptrace.h with 100% similarity]
arch/um/include/shared/skas_ptregs.h [moved from arch/um/include/skas_ptregs.h with 100% similarity]
arch/um/include/shared/syscall.h [moved from arch/um/include/syscall.h with 100% similarity]
arch/um/include/shared/sysrq.h [moved from arch/um/include/sysrq.h with 100% similarity]
arch/um/include/shared/task.h [moved from arch/um/include/task.h with 100% similarity]
arch/um/include/shared/tlb.h [moved from arch/um/include/tlb.h with 100% similarity]
arch/um/include/shared/ubd_user.h [moved from arch/um/include/ubd_user.h with 100% similarity]
arch/um/include/shared/um_malloc.h [moved from arch/um/include/um_malloc.h with 100% similarity]
arch/um/include/shared/um_mmu.h [moved from arch/um/include/um_mmu.h with 91% similarity]
arch/um/include/shared/um_uaccess.h [moved from arch/um/include/um_uaccess.h with 100% similarity]
arch/um/include/shared/user.h [moved from arch/um/include/user.h with 97% similarity]
arch/um/include/sigcontext.h [deleted file]
arch/um/kernel/exec.c
arch/um/kernel/internal.h [new file with mode: 0644]
arch/um/kernel/signal.c
arch/um/kernel/syscall.c
arch/um/os-Linux/include/file.h [deleted file]
arch/um/os-Linux/skas/mem.c
arch/um/sys-i386/asm/archparam.h [moved from include/asm-um/archparam-i386.h with 77% similarity]
arch/um/sys-i386/asm/elf.h [moved from include/asm-um/elf-i386.h with 100% similarity]
arch/um/sys-i386/asm/module.h [moved from include/asm-um/module-i386.h with 100% similarity]
arch/um/sys-i386/asm/processor.h [moved from include/asm-um/processor-i386.h with 97% similarity]
arch/um/sys-i386/asm/ptrace.h [moved from include/asm-um/ptrace-i386.h with 93% similarity]
arch/um/sys-i386/shared/sysdep/archsetjmp.h [moved from arch/um/include/sysdep-i386/archsetjmp.h with 100% similarity]
arch/um/sys-i386/shared/sysdep/barrier.h [moved from arch/um/include/sysdep-i386/barrier.h with 100% similarity]
arch/um/sys-i386/shared/sysdep/checksum.h [moved from arch/um/include/sysdep-i386/checksum.h with 100% similarity]
arch/um/sys-i386/shared/sysdep/faultinfo.h [moved from arch/um/include/sysdep-i386/faultinfo.h with 100% similarity]
arch/um/sys-i386/shared/sysdep/host_ldt.h [moved from include/asm-um/host_ldt-i386.h with 97% similarity]
arch/um/sys-i386/shared/sysdep/kernel-offsets.h [moved from arch/um/include/sysdep-i386/kernel-offsets.h with 100% similarity]
arch/um/sys-i386/shared/sysdep/ptrace.h [moved from arch/um/include/sysdep-i386/ptrace.h with 99% similarity]
arch/um/sys-i386/shared/sysdep/ptrace_user.h [moved from arch/um/include/sysdep-i386/ptrace_user.h with 100% similarity]
arch/um/sys-i386/shared/sysdep/sc.h [moved from arch/um/include/sysdep-i386/sc.h with 100% similarity]
arch/um/sys-i386/shared/sysdep/sigcontext.h [moved from arch/um/include/sysdep-i386/sigcontext.h with 100% similarity]
arch/um/sys-i386/shared/sysdep/skas_ptrace.h [moved from arch/um/include/sysdep-i386/skas_ptrace.h with 100% similarity]
arch/um/sys-i386/shared/sysdep/stub.h [moved from arch/um/include/sysdep-i386/stub.h with 98% similarity]
arch/um/sys-i386/shared/sysdep/syscalls.h [moved from arch/um/include/sysdep-i386/syscalls.h with 100% similarity]
arch/um/sys-i386/shared/sysdep/system.h [new file with mode: 0644]
arch/um/sys-i386/shared/sysdep/tls.h [moved from arch/um/include/sysdep-i386/tls.h with 97% similarity]
arch/um/sys-i386/shared/sysdep/vm-flags.h [moved from include/asm-um/vm-flags-i386.h with 100% similarity]
arch/um/sys-i386/stub.S
arch/um/sys-i386/syscalls.c
arch/um/sys-ia64/sysdep/ptrace.h [moved from arch/um/include/sysdep-ia64/ptrace.h with 100% similarity]
arch/um/sys-ia64/sysdep/sigcontext.h [moved from arch/um/include/sysdep-ia64/sigcontext.h with 100% similarity]
arch/um/sys-ia64/sysdep/skas_ptrace.h [moved from arch/um/include/sysdep-ia64/skas_ptrace.h with 100% similarity]
arch/um/sys-ia64/sysdep/syscalls.h [moved from arch/um/include/sysdep-ia64/syscalls.h with 100% similarity]
arch/um/sys-ppc/asm/archparam.h [moved from include/asm-um/archparam-ppc.h with 100% similarity]
arch/um/sys-ppc/asm/elf.h [moved from include/asm-um/elf-ppc.h with 100% similarity]
arch/um/sys-ppc/asm/processor.h [moved from include/asm-um/processor-ppc.h with 100% similarity]
arch/um/sys-ppc/shared/sysdep/ptrace.h [moved from arch/um/include/sysdep-ppc/ptrace.h with 100% similarity]
arch/um/sys-ppc/shared/sysdep/sigcontext.h [moved from arch/um/include/sysdep-ppc/sigcontext.h with 100% similarity]
arch/um/sys-ppc/shared/sysdep/skas_ptrace.h [moved from arch/um/include/sysdep-ppc/skas_ptrace.h with 100% similarity]
arch/um/sys-ppc/shared/sysdep/syscalls.h [moved from arch/um/include/sysdep-ppc/syscalls.h with 100% similarity]
arch/um/sys-x86_64/asm/archparam.h [moved from include/asm-um/archparam-x86_64.h with 100% similarity]
arch/um/sys-x86_64/asm/elf.h [moved from include/asm-um/elf-x86_64.h with 100% similarity]
arch/um/sys-x86_64/asm/module.h [moved from include/asm-um/module-x86_64.h with 100% similarity]
arch/um/sys-x86_64/asm/processor.h [moved from include/asm-um/processor-x86_64.h with 97% similarity]
arch/um/sys-x86_64/asm/ptrace.h [moved from include/asm-um/ptrace-x86_64.h with 85% similarity]
arch/um/sys-x86_64/shared/sysdep/archsetjmp.h [moved from arch/um/include/sysdep-x86_64/archsetjmp.h with 100% similarity]
arch/um/sys-x86_64/shared/sysdep/barrier.h [moved from arch/um/include/sysdep-x86_64/barrier.h with 100% similarity]
arch/um/sys-x86_64/shared/sysdep/checksum.h [moved from arch/um/include/sysdep-x86_64/checksum.h with 100% similarity]
arch/um/sys-x86_64/shared/sysdep/faultinfo.h [moved from arch/um/include/sysdep-x86_64/faultinfo.h with 100% similarity]
arch/um/sys-x86_64/shared/sysdep/host_ldt.h [moved from include/asm-um/host_ldt-x86_64.h with 97% similarity]
arch/um/sys-x86_64/shared/sysdep/kernel-offsets.h [moved from arch/um/include/sysdep-x86_64/kernel-offsets.h with 100% similarity]
arch/um/sys-x86_64/shared/sysdep/ptrace.h [moved from arch/um/include/sysdep-x86_64/ptrace.h with 99% similarity]
arch/um/sys-x86_64/shared/sysdep/ptrace_user.h [moved from arch/um/include/sysdep-x86_64/ptrace_user.h with 100% similarity]
arch/um/sys-x86_64/shared/sysdep/sc.h [moved from arch/um/include/sysdep-x86_64/sc.h with 100% similarity]
arch/um/sys-x86_64/shared/sysdep/sigcontext.h [moved from arch/um/include/sysdep-x86_64/sigcontext.h with 100% similarity]
arch/um/sys-x86_64/shared/sysdep/skas_ptrace.h [moved from arch/um/include/sysdep-x86_64/skas_ptrace.h with 100% similarity]
arch/um/sys-x86_64/shared/sysdep/stub.h [moved from arch/um/include/sysdep-x86_64/stub.h with 98% similarity]
arch/um/sys-x86_64/shared/sysdep/syscalls.h [moved from arch/um/include/sysdep-x86_64/syscalls.h with 100% similarity]
arch/um/sys-x86_64/shared/sysdep/system.h [new file with mode: 0644]
arch/um/sys-x86_64/shared/sysdep/tls.h [moved from arch/um/include/sysdep-x86_64/tls.h with 96% similarity]
arch/um/sys-x86_64/shared/sysdep/vm-flags.h [moved from include/asm-um/vm-flags-x86_64.h with 100% similarity]
arch/um/sys-x86_64/stub.S
arch/um/sys-x86_64/syscall_table.c
arch/x86/Makefile
arch/x86/boot/compressed/misc.c
arch/x86/include/asm/Kbuild [moved from include/asm-x86/Kbuild with 100% similarity]
arch/x86/include/asm/a.out-core.h [moved from include/asm-x86/a.out-core.h with 95% similarity]
arch/x86/include/asm/a.out.h [moved from include/asm-x86/a.out.h with 88% similarity]
arch/x86/include/asm/acpi.h [moved from include/asm-x86/acpi.h with 98% similarity]
arch/x86/include/asm/agp.h [moved from include/asm-x86/agp.h with 93% similarity]
arch/x86/include/asm/alternative-asm.h [moved from include/asm-x86/alternative-asm.h with 100% similarity]
arch/x86/include/asm/alternative.h [moved from include/asm-x86/alternative.h with 98% similarity]
arch/x86/include/asm/amd_iommu.h [moved from include/asm-x86/amd_iommu.h with 92% similarity]
arch/x86/include/asm/amd_iommu_types.h [moved from include/asm-x86/amd_iommu_types.h with 99% similarity]
arch/x86/include/asm/apic.h [moved from include/asm-x86/apic.h with 98% similarity]
arch/x86/include/asm/apicdef.h [moved from include/asm-x86/apicdef.h with 99% similarity]
arch/x86/include/asm/arch_hooks.h [moved from include/asm-x86/arch_hooks.h with 86% similarity]
arch/x86/include/asm/asm.h [moved from include/asm-x86/asm.h with 93% similarity]
arch/x86/include/asm/atomic.h [moved from include/asm-x86/atomic.h with 100% similarity]
arch/x86/include/asm/atomic_32.h [moved from include/asm-x86/atomic_32.h with 98% similarity]
arch/x86/include/asm/atomic_64.h [moved from include/asm-x86/atomic_64.h with 99% similarity]
arch/x86/include/asm/auxvec.h [moved from include/asm-x86/auxvec.h with 70% similarity]
arch/x86/include/asm/bigsmp/apic.h [moved from include/asm-x86/bigsmp/apic.h with 100% similarity]
arch/x86/include/asm/bigsmp/apicdef.h [moved from include/asm-x86/bigsmp/apicdef.h with 100% similarity]
arch/x86/include/asm/bigsmp/ipi.h [moved from include/asm-x86/bigsmp/ipi.h with 100% similarity]
arch/x86/include/asm/bios_ebda.h [moved from include/asm-x86/bios_ebda.h with 88% similarity]
arch/x86/include/asm/bitops.h [moved from include/asm-x86/bitops.h with 99% similarity]
arch/x86/include/asm/boot.h [moved from include/asm-x86/boot.h with 89% similarity]
arch/x86/include/asm/bootparam.h [moved from include/asm-x86/bootparam.h with 96% similarity]
arch/x86/include/asm/bug.h [moved from include/asm-x86/bug.h with 90% similarity]
arch/x86/include/asm/bugs.h [moved from include/asm-x86/bugs.h with 71% similarity]
arch/x86/include/asm/byteorder.h [moved from include/asm-x86/byteorder.h with 94% similarity]
arch/x86/include/asm/cache.h [moved from include/asm-x86/cache.h with 85% similarity]
arch/x86/include/asm/cacheflush.h [moved from include/asm-x86/cacheflush.h with 97% similarity]
arch/x86/include/asm/calgary.h [moved from include/asm-x86/calgary.h with 96% similarity]
arch/x86/include/asm/calling.h [moved from include/asm-x86/calling.h with 100% similarity]
arch/x86/include/asm/checksum.h [moved from include/asm-x86/checksum.h with 100% similarity]
arch/x86/include/asm/checksum_32.h [moved from include/asm-x86/checksum_32.h with 97% similarity]
arch/x86/include/asm/checksum_64.h [moved from include/asm-x86/checksum_64.h with 98% similarity]
arch/x86/include/asm/cmpxchg.h [moved from include/asm-x86/cmpxchg.h with 100% similarity]
arch/x86/include/asm/cmpxchg_32.h [moved from include/asm-x86/cmpxchg_32.h with 98% similarity]
arch/x86/include/asm/cmpxchg_64.h [moved from include/asm-x86/cmpxchg_64.h with 97% similarity]
arch/x86/include/asm/compat.h [moved from include/asm-x86/compat.h with 98% similarity]
arch/x86/include/asm/cpu.h [moved from include/asm-x86/cpu.h with 80% similarity]
arch/x86/include/asm/cpufeature.h [moved from include/asm-x86/cpufeature.h with 99% similarity]
arch/x86/include/asm/cputime.h [moved from include/asm-x86/cputime.h with 100% similarity]
arch/x86/include/asm/current.h [moved from include/asm-x86/current.h with 87% similarity]
arch/x86/include/asm/debugreg.h [moved from include/asm-x86/debugreg.h with 96% similarity]
arch/x86/include/asm/delay.h [moved from include/asm-x86/delay.h with 90% similarity]
arch/x86/include/asm/desc.h [moved from include/asm-x86/desc.h with 99% similarity]
arch/x86/include/asm/desc_defs.h [moved from include/asm-x86/desc_defs.h with 96% similarity]
arch/x86/include/asm/device.h [moved from include/asm-x86/device.h with 72% similarity]
arch/x86/include/asm/div64.h [moved from include/asm-x86/div64.h with 94% similarity]
arch/x86/include/asm/dma-mapping.h [moved from include/asm-x86/dma-mapping.h with 98% similarity]
arch/x86/include/asm/dma.h [moved from include/asm-x86/dma.h with 99% similarity]
arch/x86/include/asm/dmi.h [moved from include/asm-x86/dmi.h with 88% similarity]
arch/x86/include/asm/ds.h [moved from include/asm-x86/ds.h with 98% similarity]
arch/x86/include/asm/dwarf2.h [moved from include/asm-x86/dwarf2.h with 95% similarity]
arch/x86/include/asm/e820.h [moved from include/asm-x86/e820.h with 98% similarity]
arch/x86/include/asm/edac.h [moved from include/asm-x86/edac.h with 82% similarity]
arch/x86/include/asm/efi.h [moved from include/asm-x86/efi.h with 98% similarity]
arch/x86/include/asm/elf.h [moved from include/asm-x86/elf.h with 99% similarity]
arch/x86/include/asm/emergency-restart.h [moved from include/asm-x86/emergency-restart.h with 65% similarity]
arch/x86/include/asm/errno.h [moved from include/asm-x86/errno.h with 100% similarity]
arch/x86/include/asm/es7000/apic.h [moved from include/asm-x86/es7000/apic.h with 100% similarity]
arch/x86/include/asm/es7000/apicdef.h [moved from include/asm-x86/es7000/apicdef.h with 100% similarity]
arch/x86/include/asm/es7000/ipi.h [moved from include/asm-x86/es7000/ipi.h with 100% similarity]
arch/x86/include/asm/es7000/mpparse.h [moved from include/asm-x86/es7000/mpparse.h with 100% similarity]
arch/x86/include/asm/es7000/wakecpu.h [moved from include/asm-x86/es7000/wakecpu.h with 100% similarity]
arch/x86/include/asm/fb.h [moved from include/asm-x86/fb.h with 85% similarity]
arch/x86/include/asm/fcntl.h [moved from include/asm-x86/fcntl.h with 100% similarity]
arch/x86/include/asm/fixmap.h [moved from include/asm-x86/fixmap.h with 95% similarity]
arch/x86/include/asm/fixmap_32.h [moved from include/asm-x86/fixmap_32.h with 97% similarity]
arch/x86/include/asm/fixmap_64.h [moved from include/asm-x86/fixmap_64.h with 96% similarity]
arch/x86/include/asm/floppy.h [moved from include/asm-x86/floppy.h with 98% similarity]
arch/x86/include/asm/frame.h [moved from include/asm-x86/frame.h with 100% similarity]
arch/x86/include/asm/ftrace.h [moved from include/asm-x86/ftrace.h with 84% similarity]
arch/x86/include/asm/futex.h [moved from include/asm-x86/futex.h with 97% similarity]
arch/x86/include/asm/gart.h [moved from include/asm-x86/gart.h with 95% similarity]
arch/x86/include/asm/genapic.h [moved from include/asm-x86/genapic.h with 100% similarity]
arch/x86/include/asm/genapic_32.h [moved from include/asm-x86/genapic_32.h with 97% similarity]
arch/x86/include/asm/genapic_64.h [moved from include/asm-x86/genapic_64.h with 94% similarity]
arch/x86/include/asm/geode.h [moved from include/asm-x86/geode.h with 98% similarity]
arch/x86/include/asm/gpio.h [moved from include/asm-x86/gpio.h with 92% similarity]
arch/x86/include/asm/hardirq.h [moved from include/asm-x86/hardirq.h with 100% similarity]
arch/x86/include/asm/hardirq_32.h [moved from include/asm-x86/hardirq_32.h with 87% similarity]
arch/x86/include/asm/hardirq_64.h [moved from include/asm-x86/hardirq_64.h with 84% similarity]
arch/x86/include/asm/highmem.h [moved from include/asm-x86/highmem.h with 96% similarity]
arch/x86/include/asm/hpet.h [moved from include/asm-x86/hpet.h with 97% similarity]
arch/x86/include/asm/hugetlb.h [moved from include/asm-x86/hugetlb.h with 95% similarity]
arch/x86/include/asm/hw_irq.h [moved from include/asm-x86/hw_irq.h with 97% similarity]
arch/x86/include/asm/hypertransport.h [moved from include/asm-x86/hypertransport.h with 91% similarity]
arch/x86/include/asm/i387.h [moved from include/asm-x86/i387.h with 99% similarity]
arch/x86/include/asm/i8253.h [moved from include/asm-x86/i8253.h with 77% similarity]
arch/x86/include/asm/i8259.h [moved from include/asm-x86/i8259.h with 95% similarity]
arch/x86/include/asm/ia32.h [moved from include/asm-x86/ia32.h with 97% similarity]
arch/x86/include/asm/ia32_unistd.h [moved from include/asm-x86/ia32_unistd.h with 81% similarity]
arch/x86/include/asm/idle.h [moved from include/asm-x86/idle.h with 76% similarity]
arch/x86/include/asm/intel_arch_perfmon.h [moved from include/asm-x86/intel_arch_perfmon.h with 87% similarity]
arch/x86/include/asm/io.h [moved from include/asm-x86/io.h with 97% similarity]
arch/x86/include/asm/io_32.h [moved from include/asm-x86/io_32.h with 98% similarity]
arch/x86/include/asm/io_64.h [moved from include/asm-x86/io_64.h with 98% similarity]
arch/x86/include/asm/io_apic.h [moved from include/asm-x86/io_apic.h with 98% similarity]
arch/x86/include/asm/ioctl.h [moved from include/asm-x86/ioctl.h with 100% similarity]
arch/x86/include/asm/ioctls.h [moved from include/asm-x86/ioctls.h with 97% similarity]
arch/x86/include/asm/iommu.h [moved from include/asm-x86/iommu.h with 93% similarity]
arch/x86/include/asm/ipcbuf.h [moved from include/asm-x86/ipcbuf.h with 86% similarity]
arch/x86/include/asm/ipi.h [moved from include/asm-x86/ipi.h with 97% similarity]
arch/x86/include/asm/irq.h [moved from include/asm-x86/irq.h with 93% similarity]
arch/x86/include/asm/irq_regs.h [moved from include/asm-x86/irq_regs.h with 100% similarity]
arch/x86/include/asm/irq_regs_32.h [moved from include/asm-x86/irq_regs_32.h with 84% similarity]
arch/x86/include/asm/irq_regs_64.h [moved from include/asm-x86/irq_regs_64.h with 100% similarity]
arch/x86/include/asm/irq_remapping.h [new file with mode: 0644]
arch/x86/include/asm/irq_vectors.h [moved from include/asm-x86/irq_vectors.h with 97% similarity]
arch/x86/include/asm/irqflags.h [moved from include/asm-x86/irqflags.h with 100% similarity]
arch/x86/include/asm/ist.h [moved from include/asm-x86/ist.h with 91% similarity]
arch/x86/include/asm/k8.h [moved from include/asm-x86/k8.h with 81% similarity]
arch/x86/include/asm/kdebug.h [moved from include/asm-x86/kdebug.h with 90% similarity]
arch/x86/include/asm/kexec.h [moved from include/asm-x86/kexec.h with 98% similarity]
arch/x86/include/asm/kgdb.h [moved from include/asm-x86/kgdb.h with 95% similarity]
arch/x86/include/asm/kmap_types.h [moved from include/asm-x86/kmap_types.h with 81% similarity]
arch/x86/include/asm/kprobes.h [moved from include/asm-x86/kprobes.h with 96% similarity]
arch/x86/include/asm/kvm.h [moved from include/asm-x86/kvm.h with 98% similarity]
arch/x86/include/asm/kvm_host.h [moved from include/asm-x86/kvm_host.h with 99% similarity]
arch/x86/include/asm/kvm_para.h [moved from include/asm-x86/kvm_para.h with 97% similarity]
arch/x86/include/asm/kvm_x86_emulate.h [moved from include/asm-x86/kvm_x86_emulate.h with 98% similarity]
arch/x86/include/asm/ldt.h [moved from include/asm-x86/ldt.h with 92% similarity]
arch/x86/include/asm/lguest.h [moved from include/asm-x86/lguest.h with 96% similarity]
arch/x86/include/asm/lguest_hcall.h [moved from include/asm-x86/lguest_hcall.h with 95% similarity]
arch/x86/include/asm/linkage.h [moved from include/asm-x86/linkage.h with 95% similarity]
arch/x86/include/asm/local.h [moved from include/asm-x86/local.h with 98% similarity]
arch/x86/include/asm/mach-default/apm.h [moved from include/asm-x86/mach-default/apm.h with 93% similarity]
arch/x86/include/asm/mach-default/do_timer.h [moved from include/asm-x86/mach-default/do_timer.h with 100% similarity]
arch/x86/include/asm/mach-default/entry_arch.h [moved from include/asm-x86/mach-default/entry_arch.h with 100% similarity]
arch/x86/include/asm/mach-default/mach_apic.h [moved from include/asm-x86/mach-default/mach_apic.h with 96% similarity]
arch/x86/include/asm/mach-default/mach_apicdef.h [moved from include/asm-x86/mach-default/mach_apicdef.h with 76% similarity]
arch/x86/include/asm/mach-default/mach_ipi.h [moved from include/asm-x86/mach-default/mach_ipi.h with 91% similarity]
arch/x86/include/asm/mach-default/mach_mpparse.h [moved from include/asm-x86/mach-default/mach_mpparse.h with 62% similarity]
arch/x86/include/asm/mach-default/mach_mpspec.h [new file with mode: 0644]
arch/x86/include/asm/mach-default/mach_timer.h [moved from include/asm-x86/mach-default/mach_timer.h with 91% similarity]
arch/x86/include/asm/mach-default/mach_traps.h [moved from include/asm-x86/mach-default/mach_traps.h with 80% similarity]
arch/x86/include/asm/mach-default/mach_wakecpu.h [moved from include/asm-x86/mach-default/mach_wakecpu.h with 85% similarity]
arch/x86/include/asm/mach-default/pci-functions.h [moved from include/asm-x86/mach-default/pci-functions.h with 100% similarity]
arch/x86/include/asm/mach-default/setup_arch.h [moved from include/asm-x86/mach-default/setup_arch.h with 100% similarity]
arch/x86/include/asm/mach-default/smpboot_hooks.h [moved from include/asm-x86/mach-default/smpboot_hooks.h with 100% similarity]
arch/x86/include/asm/mach-generic/gpio.h [moved from include/asm-x86/mach-generic/gpio.h with 76% similarity]
arch/x86/include/asm/mach-generic/mach_apic.h [moved from include/asm-x86/mach-generic/mach_apic.h with 91% similarity]
arch/x86/include/asm/mach-generic/mach_apicdef.h [moved from include/asm-x86/mach-generic/mach_apicdef.h with 50% similarity]
arch/x86/include/asm/mach-generic/mach_ipi.h [moved from include/asm-x86/mach-generic/mach_ipi.h with 57% similarity]
arch/x86/include/asm/mach-generic/mach_mpparse.h [moved from include/asm-x86/mach-generic/mach_mpparse.h with 52% similarity]
arch/x86/include/asm/mach-generic/mach_mpspec.h [moved from include/asm-x86/mach-generic/mach_mpspec.h with 67% similarity]
arch/x86/include/asm/mach-rdc321x/gpio.h [moved from include/asm-x86/mach-rdc321x/gpio.h with 91% similarity]
arch/x86/include/asm/mach-rdc321x/rdc321x_defs.h [moved from include/asm-x86/mach-rdc321x/rdc321x_defs.h with 100% similarity]
arch/x86/include/asm/mach-voyager/do_timer.h [moved from include/asm-x86/mach-voyager/do_timer.h with 100% similarity]
arch/x86/include/asm/mach-voyager/entry_arch.h [moved from include/asm-x86/mach-voyager/entry_arch.h with 100% similarity]
arch/x86/include/asm/mach-voyager/setup_arch.h [moved from include/asm-x86/mach-voyager/setup_arch.h with 100% similarity]
arch/x86/include/asm/math_emu.h [moved from include/asm-x86/math_emu.h with 86% similarity]
arch/x86/include/asm/mc146818rtc.h [moved from include/asm-x86/mc146818rtc.h with 96% similarity]
arch/x86/include/asm/mca.h [moved from include/asm-x86/mca.h with 94% similarity]
arch/x86/include/asm/mca_dma.h [moved from include/asm-x86/mca_dma.h with 98% similarity]
arch/x86/include/asm/mce.h [moved from include/asm-x86/mce.h with 97% similarity]
arch/x86/include/asm/microcode.h [moved from include/asm-x86/microcode.h with 91% similarity]
arch/x86/include/asm/mman.h [moved from include/asm-x86/mman.h with 90% similarity]
arch/x86/include/asm/mmconfig.h [moved from include/asm-x86/mmconfig.h with 74% similarity]
arch/x86/include/asm/mmu.h [moved from include/asm-x86/mmu.h with 81% similarity]
arch/x86/include/asm/mmu_context.h [moved from include/asm-x86/mmu_context.h with 87% similarity]
arch/x86/include/asm/mmu_context_32.h [moved from include/asm-x86/mmu_context_32.h with 92% similarity]
arch/x86/include/asm/mmu_context_64.h [moved from include/asm-x86/mmu_context_64.h with 92% similarity]
arch/x86/include/asm/mmx.h [moved from include/asm-x86/mmx.h with 75% similarity]
arch/x86/include/asm/mmzone.h [moved from include/asm-x86/mmzone.h with 100% similarity]
arch/x86/include/asm/mmzone_32.h [moved from include/asm-x86/mmzone_32.h with 97% similarity]
arch/x86/include/asm/mmzone_64.h [moved from include/asm-x86/mmzone_64.h with 93% similarity]
arch/x86/include/asm/module.h [moved from include/asm-x86/module.h with 96% similarity]
arch/x86/include/asm/mpspec.h [moved from include/asm-x86/mpspec.h with 97% similarity]
arch/x86/include/asm/mpspec_def.h [moved from include/asm-x86/mpspec_def.h with 97% similarity]
arch/x86/include/asm/msgbuf.h [moved from include/asm-x86/msgbuf.h with 92% similarity]
arch/x86/include/asm/msidef.h [moved from include/asm-x86/msidef.h with 95% similarity]
arch/x86/include/asm/msr-index.h [moved from include/asm-x86/msr-index.h with 99% similarity]
arch/x86/include/asm/msr.h [moved from include/asm-x86/msr.h with 98% similarity]
arch/x86/include/asm/mtrr.h [moved from include/asm-x86/mtrr.h with 98% similarity]
arch/x86/include/asm/mutex.h [moved from include/asm-x86/mutex.h with 100% similarity]
arch/x86/include/asm/mutex_32.h [moved from include/asm-x86/mutex_32.h with 97% similarity]
arch/x86/include/asm/mutex_64.h [moved from include/asm-x86/mutex_64.h with 96% similarity]
arch/x86/include/asm/nmi.h [moved from include/asm-x86/nmi.h with 96% similarity]
arch/x86/include/asm/nops.h [moved from include/asm-x86/nops.h with 97% similarity]
arch/x86/include/asm/numa.h [moved from include/asm-x86/numa.h with 100% similarity]
arch/x86/include/asm/numa_32.h [moved from include/asm-x86/numa_32.h with 62% similarity]
arch/x86/include/asm/numa_64.h [moved from include/asm-x86/numa_64.h with 92% similarity]
arch/x86/include/asm/numaq.h [moved from include/asm-x86/numaq.h with 98% similarity]
arch/x86/include/asm/numaq/apic.h [moved from include/asm-x86/numaq/apic.h with 100% similarity]
arch/x86/include/asm/numaq/apicdef.h [moved from include/asm-x86/numaq/apicdef.h with 100% similarity]
arch/x86/include/asm/numaq/ipi.h [moved from include/asm-x86/numaq/ipi.h with 100% similarity]
arch/x86/include/asm/numaq/mpparse.h [moved from include/asm-x86/numaq/mpparse.h with 100% similarity]
arch/x86/include/asm/numaq/wakecpu.h [moved from include/asm-x86/numaq/wakecpu.h with 100% similarity]
arch/x86/include/asm/olpc.h [moved from include/asm-x86/olpc.h with 97% similarity]
arch/x86/include/asm/page.h [moved from include/asm-x86/page.h with 98% similarity]
arch/x86/include/asm/page_32.h [moved from include/asm-x86/page_32.h with 97% similarity]
arch/x86/include/asm/page_64.h [moved from include/asm-x86/page_64.h with 97% similarity]
arch/x86/include/asm/param.h [moved from include/asm-x86/param.h with 82% similarity]
arch/x86/include/asm/paravirt.h [moved from include/asm-x86/paravirt.h with 99% similarity]
arch/x86/include/asm/parport.h [moved from include/asm-x86/parport.h with 70% similarity]
arch/x86/include/asm/pat.h [moved from include/asm-x86/pat.h with 86% similarity]
arch/x86/include/asm/pci-direct.h [moved from include/asm-x86/pci-direct.h with 88% similarity]
arch/x86/include/asm/pci.h [moved from include/asm-x86/pci.h with 97% similarity]
arch/x86/include/asm/pci_32.h [moved from include/asm-x86/pci_32.h with 91% similarity]
arch/x86/include/asm/pci_64.h [moved from include/asm-x86/pci_64.h with 95% similarity]
arch/x86/include/asm/pda.h [moved from include/asm-x86/pda.h with 98% similarity]
arch/x86/include/asm/percpu.h [moved from include/asm-x86/percpu.h with 98% similarity]
arch/x86/include/asm/pgalloc.h [moved from include/asm-x86/pgalloc.h with 97% similarity]
arch/x86/include/asm/pgtable-2level-defs.h [moved from include/asm-x86/pgtable-2level-defs.h with 67% similarity]
arch/x86/include/asm/pgtable-2level.h [moved from include/asm-x86/pgtable-2level.h with 94% similarity]
arch/x86/include/asm/pgtable-3level-defs.h [moved from include/asm-x86/pgtable-3level-defs.h with 78% similarity]
arch/x86/include/asm/pgtable-3level.h [moved from include/asm-x86/pgtable-3level.h with 97% similarity]
arch/x86/include/asm/pgtable.h [moved from include/asm-x86/pgtable.h with 99% similarity]
arch/x86/include/asm/pgtable_32.h [moved from include/asm-x86/pgtable_32.h with 98% similarity]
arch/x86/include/asm/pgtable_64.h [moved from include/asm-x86/pgtable_64.h with 98% similarity]
arch/x86/include/asm/poll.h [moved from include/asm-x86/poll.h with 100% similarity]
arch/x86/include/asm/posix_types.h [moved from include/asm-x86/posix_types.h with 100% similarity]
arch/x86/include/asm/posix_types_32.h [moved from include/asm-x86/posix_types_32.h with 95% similarity]
arch/x86/include/asm/posix_types_64.h [moved from include/asm-x86/posix_types_64.h with 96% similarity]
arch/x86/include/asm/prctl.h [moved from include/asm-x86/prctl.h with 58% similarity]
arch/x86/include/asm/processor-cyrix.h [moved from include/asm-x86/processor-cyrix.h with 100% similarity]
arch/x86/include/asm/processor-flags.h [moved from include/asm-x86/processor-flags.h with 96% similarity]
arch/x86/include/asm/processor.h [moved from include/asm-x86/processor.h with 99% similarity]
arch/x86/include/asm/proto.h [moved from include/asm-x86/proto.h with 88% similarity]
arch/x86/include/asm/ptrace-abi.h [moved from include/asm-x86/ptrace-abi.h with 97% similarity]
arch/x86/include/asm/ptrace.h [moved from include/asm-x86/ptrace.h with 98% similarity]
arch/x86/include/asm/pvclock-abi.h [moved from include/asm-x86/pvclock-abi.h with 92% similarity]
arch/x86/include/asm/pvclock.h [moved from include/asm-x86/pvclock.h with 82% similarity]
arch/x86/include/asm/reboot.h [moved from include/asm-x86/reboot.h with 83% similarity]
arch/x86/include/asm/reboot_fixups.h [new file with mode: 0644]
arch/x86/include/asm/required-features.h [moved from include/asm-x86/required-features.h with 94% similarity]
arch/x86/include/asm/resource.h [moved from include/asm-x86/resource.h with 100% similarity]
arch/x86/include/asm/resume-trace.h [moved from include/asm-x86/resume-trace.h with 81% similarity]
arch/x86/include/asm/rio.h [moved from include/asm-x86/rio.h with 97% similarity]
arch/x86/include/asm/rtc.h [moved from include/asm-x86/rtc.h with 100% similarity]
arch/x86/include/asm/rwlock.h [moved from include/asm-x86/rwlock.h with 55% similarity]
arch/x86/include/asm/rwsem.h [moved from include/asm-x86/rwsem.h with 98% similarity]
arch/x86/include/asm/scatterlist.h [moved from include/asm-x86/scatterlist.h with 87% similarity]
arch/x86/include/asm/seccomp.h [moved from include/asm-x86/seccomp.h with 100% similarity]
arch/x86/include/asm/seccomp_32.h [moved from include/asm-x86/seccomp_32.h with 74% similarity]
arch/x86/include/asm/seccomp_64.h [moved from include/asm-x86/seccomp_64.h with 84% similarity]
arch/x86/include/asm/sections.h [moved from include/asm-x86/sections.h with 100% similarity]
arch/x86/include/asm/segment.h [moved from include/asm-x86/segment.h with 98% similarity]
arch/x86/include/asm/sembuf.h [moved from include/asm-x86/sembuf.h with 88% similarity]
arch/x86/include/asm/serial.h [moved from include/asm-x86/serial.h with 92% similarity]
arch/x86/include/asm/setup.h [moved from include/asm-x86/setup.h with 96% similarity]
arch/x86/include/asm/shmbuf.h [moved from include/asm-x86/shmbuf.h with 93% similarity]
arch/x86/include/asm/shmparam.h [new file with mode: 0644]
arch/x86/include/asm/sigcontext.h [moved from include/asm-x86/sigcontext.h with 98% similarity]
arch/x86/include/asm/sigcontext32.h [moved from include/asm-x86/sigcontext32.h with 93% similarity]
arch/x86/include/asm/siginfo.h [moved from include/asm-x86/siginfo.h with 56% similarity]
arch/x86/include/asm/signal.h [moved from include/asm-x86/signal.h with 98% similarity]
arch/x86/include/asm/smp.h [moved from include/asm-x86/smp.h with 98% similarity]
arch/x86/include/asm/socket.h [moved from include/asm-x86/socket.h with 93% similarity]
arch/x86/include/asm/sockios.h [moved from include/asm-x86/sockios.h with 76% similarity]
arch/x86/include/asm/sparsemem.h [moved from include/asm-x86/sparsemem.h with 89% similarity]
arch/x86/include/asm/spinlock.h [moved from include/asm-x86/spinlock.h with 99% similarity]
arch/x86/include/asm/spinlock_types.h [moved from include/asm-x86/spinlock_types.h with 74% similarity]
arch/x86/include/asm/srat.h [moved from include/asm-x86/srat.h with 93% similarity]
arch/x86/include/asm/stacktrace.h [moved from include/asm-x86/stacktrace.h with 85% similarity]
arch/x86/include/asm/stat.h [moved from include/asm-x86/stat.h with 96% similarity]
arch/x86/include/asm/statfs.h [moved from include/asm-x86/statfs.h with 76% similarity]
arch/x86/include/asm/string.h [moved from include/asm-x86/string.h with 100% similarity]
arch/x86/include/asm/string_32.h [moved from include/asm-x86/string_32.h with 98% similarity]
arch/x86/include/asm/string_64.h [moved from include/asm-x86/string_64.h with 94% similarity]
arch/x86/include/asm/summit/apic.h [moved from include/asm-x86/summit/apic.h with 100% similarity]
arch/x86/include/asm/summit/apicdef.h [moved from include/asm-x86/summit/apicdef.h with 100% similarity]
arch/x86/include/asm/summit/ipi.h [moved from include/asm-x86/summit/ipi.h with 100% similarity]
arch/x86/include/asm/summit/mpparse.h [moved from include/asm-x86/summit/mpparse.h with 100% similarity]
arch/x86/include/asm/suspend.h [moved from include/asm-x86/suspend.h with 100% similarity]
arch/x86/include/asm/suspend_32.h [moved from include/asm-x86/suspend_32.h with 92% similarity]
arch/x86/include/asm/suspend_64.h [moved from include/asm-x86/suspend_64.h with 92% similarity]
arch/x86/include/asm/swiotlb.h [moved from include/asm-x86/swiotlb.h with 95% similarity]
arch/x86/include/asm/sync_bitops.h [moved from include/asm-x86/sync_bitops.h with 97% similarity]
arch/x86/include/asm/syscall.h [moved from include/asm-x86/syscall.h with 98% similarity]
arch/x86/include/asm/syscalls.h [moved from include/asm-x86/syscalls.h with 100% similarity]
arch/x86/include/asm/system.h [moved from include/asm-x86/system.h with 99% similarity]
arch/x86/include/asm/system_64.h [moved from include/asm-x86/system_64.h with 77% similarity]
arch/x86/include/asm/tce.h [moved from include/asm-x86/tce.h with 95% similarity]
arch/x86/include/asm/termbits.h [moved from include/asm-x86/termbits.h with 98% similarity]
arch/x86/include/asm/termios.h [moved from include/asm-x86/termios.h with 97% similarity]
arch/x86/include/asm/therm_throt.h [new file with mode: 0644]
arch/x86/include/asm/thread_info.h [moved from include/asm-x86/thread_info.h with 98% similarity]
arch/x86/include/asm/time.h [moved from include/asm-x86/time.h with 93% similarity]
arch/x86/include/asm/timer.h [moved from include/asm-x86/timer.h with 95% similarity]
arch/x86/include/asm/timex.h [moved from include/asm-x86/timex.h with 84% similarity]
arch/x86/include/asm/tlb.h [moved from include/asm-x86/tlb.h with 76% similarity]
arch/x86/include/asm/tlbflush.h [moved from include/asm-x86/tlbflush.h with 97% similarity]
arch/x86/include/asm/topology.h [moved from include/asm-x86/topology.h with 98% similarity]
arch/x86/include/asm/trampoline.h [moved from include/asm-x86/trampoline.h with 79% similarity]
arch/x86/include/asm/traps.h [moved from include/asm-x86/traps.h with 97% similarity]
arch/x86/include/asm/tsc.h [moved from include/asm-x86/tsc.h with 93% similarity]
arch/x86/include/asm/types.h [moved from include/asm-x86/types.h with 87% similarity]
arch/x86/include/asm/uaccess.h [moved from include/asm-x86/uaccess.h with 99% similarity]
arch/x86/include/asm/uaccess_32.h [moved from include/asm-x86/uaccess_32.h with 98% similarity]
arch/x86/include/asm/uaccess_64.h [moved from include/asm-x86/uaccess_64.h with 98% similarity]
arch/x86/include/asm/ucontext.h [moved from include/asm-x86/ucontext.h with 81% similarity]
arch/x86/include/asm/unaligned.h [moved from include/asm-x86/unaligned.h with 69% similarity]
arch/x86/include/asm/unistd.h [moved from include/asm-x86/unistd.h with 100% similarity]
arch/x86/include/asm/unistd_32.h [moved from include/asm-x86/unistd_32.h with 99% similarity]
arch/x86/include/asm/unistd_64.h [moved from include/asm-x86/unistd_64.h with 99% similarity]
arch/x86/include/asm/unwind.h [moved from include/asm-x86/unwind.h with 70% similarity]
arch/x86/include/asm/user.h [moved from include/asm-x86/user.h with 100% similarity]
arch/x86/include/asm/user32.h [moved from include/asm-x86/user32.h with 96% similarity]
arch/x86/include/asm/user_32.h [moved from include/asm-x86/user_32.h with 98% similarity]
arch/x86/include/asm/user_64.h [moved from include/asm-x86/user_64.h with 98% similarity]
arch/x86/include/asm/uv/bios.h [moved from include/asm-x86/uv/bios.h with 96% similarity]
arch/x86/include/asm/uv/uv_bau.h [moved from include/asm-x86/uv/uv_bau.h with 99% similarity]
arch/x86/include/asm/uv/uv_hub.h [moved from include/asm-x86/uv/uv_hub.h with 99% similarity]
arch/x86/include/asm/uv/uv_irq.h [moved from include/asm-x86/uv/uv_irq.h with 90% similarity]
arch/x86/include/asm/uv/uv_mmrs.h [moved from include/asm-x86/uv/uv_mmrs.h with 99% similarity]
arch/x86/include/asm/vdso.h [moved from include/asm-x86/vdso.h with 94% similarity]
arch/x86/include/asm/vga.h [moved from include/asm-x86/vga.h with 81% similarity]
arch/x86/include/asm/vgtod.h [moved from include/asm-x86/vgtod.h with 87% similarity]
arch/x86/include/asm/vic.h [moved from include/asm-x86/vic.h with 100% similarity]
arch/x86/include/asm/visws/cobalt.h [moved from include/asm-x86/visws/cobalt.h with 97% similarity]
arch/x86/include/asm/visws/lithium.h [moved from include/asm-x86/visws/lithium.h with 92% similarity]
arch/x86/include/asm/visws/piix4.h [moved from include/asm-x86/visws/piix4.h with 96% similarity]
arch/x86/include/asm/visws/sgivw.h [moved from include/asm-x86/visws/sgivw.h with 100% similarity]
arch/x86/include/asm/vm86.h [moved from include/asm-x86/vm86.h with 98% similarity]
arch/x86/include/asm/vmi.h [moved from include/asm-x86/vmi.h with 100% similarity]
arch/x86/include/asm/vmi_time.h [moved from include/asm-x86/vmi_time.h with 97% similarity]
arch/x86/include/asm/voyager.h [moved from include/asm-x86/voyager.h with 100% similarity]
arch/x86/include/asm/vsyscall.h [moved from include/asm-x86/vsyscall.h with 92% similarity]
arch/x86/include/asm/xcr.h [moved from include/asm-x86/xcr.h with 100% similarity]
arch/x86/include/asm/xen/events.h [moved from include/asm-x86/xen/events.h with 78% similarity]
arch/x86/include/asm/xen/grant_table.h [new file with mode: 0644]
arch/x86/include/asm/xen/hypercall.h [moved from include/asm-x86/xen/hypercall.h with 99% similarity]
arch/x86/include/asm/xen/hypervisor.h [moved from include/asm-x86/xen/hypervisor.h with 96% similarity]
arch/x86/include/asm/xen/interface.h [moved from include/asm-x86/xen/interface.h with 98% similarity]
arch/x86/include/asm/xen/interface_32.h [moved from include/asm-x86/xen/interface_32.h with 95% similarity]
arch/x86/include/asm/xen/interface_64.h [moved from include/asm-x86/xen/interface_64.h with 97% similarity]
arch/x86/include/asm/xen/page.h [moved from include/asm-x86/xen/page.h with 98% similarity]
arch/x86/include/asm/xor.h [moved from include/asm-x86/xor.h with 100% similarity]
arch/x86/include/asm/xor_32.h [moved from include/asm-x86/xor_32.h with 99% similarity]
arch/x86/include/asm/xor_64.h [moved from include/asm-x86/xor_64.h with 98% similarity]
arch/x86/include/asm/xsave.h [moved from include/asm-x86/xsave.h with 100% similarity]
arch/x86/kernel/asm-offsets_64.c
arch/x86/kernel/cpu/Makefile
arch/x86/kernel/syscall_64.c
drivers/xen/cpu_hotplug.c
include/asm-um/a.out.h [deleted file]
include/asm-um/alternative-asm.h [deleted file]
include/asm-um/alternative.h [deleted file]
include/asm-um/asm.h [deleted file]
include/asm-um/atomic.h [deleted file]
include/asm-um/bitops.h [deleted file]
include/asm-um/boot.h [deleted file]
include/asm-um/bug.h [deleted file]
include/asm-um/byteorder.h [deleted file]
include/asm-um/cacheflush.h [deleted file]
include/asm-um/calling.h [deleted file]
include/asm-um/cmpxchg.h [deleted file]
include/asm-um/cobalt.h [deleted file]
include/asm-um/cpufeature.h [deleted file]
include/asm-um/div64.h [deleted file]
include/asm-um/dwarf2.h [deleted file]
include/asm-um/errno.h [deleted file]
include/asm-um/fcntl.h [deleted file]
include/asm-um/floppy.h [deleted file]
include/asm-um/frame.h [deleted file]
include/asm-um/highmem.h [deleted file]
include/asm-um/ide.h [deleted file]
include/asm-um/ioctl.h [deleted file]
include/asm-um/ioctls.h [deleted file]
include/asm-um/ipcbuf.h [deleted file]
include/asm-um/linkage.h [deleted file]
include/asm-um/local.h [deleted file]
include/asm-um/locks.h [deleted file]
include/asm-um/mca_dma.h [deleted file]
include/asm-um/mman.h [deleted file]
include/asm-um/module-generic.h [deleted file]
include/asm-um/msgbuf.h [deleted file]
include/asm-um/mtrr.h [deleted file]
include/asm-um/nops.h [deleted file]
include/asm-um/paravirt.h [deleted file]
include/asm-um/percpu.h [deleted file]
include/asm-um/poll.h [deleted file]
include/asm-um/posix_types.h [deleted file]
include/asm-um/prctl.h [deleted file]
include/asm-um/resource.h [deleted file]
include/asm-um/rwlock.h [deleted file]
include/asm-um/rwsem.h [deleted file]
include/asm-um/scatterlist.h [deleted file]
include/asm-um/sembuf.h [deleted file]
include/asm-um/serial.h [deleted file]
include/asm-um/shmbuf.h [deleted file]
include/asm-um/shmparam.h [deleted file]
include/asm-um/sigcontext-generic.h [deleted file]
include/asm-um/sigcontext-i386.h [deleted file]
include/asm-um/sigcontext-ppc.h [deleted file]
include/asm-um/sigcontext-x86_64.h [deleted file]
include/asm-um/siginfo.h [deleted file]
include/asm-um/signal.h [deleted file]
include/asm-um/socket.h [deleted file]
include/asm-um/sockios.h [deleted file]
include/asm-um/spinlock.h [deleted file]
include/asm-um/spinlock_types.h [deleted file]
include/asm-um/stat.h [deleted file]
include/asm-um/statfs.h [deleted file]
include/asm-um/string.h [deleted file]
include/asm-um/system-i386.h [deleted file]
include/asm-um/system-ppc.h [deleted file]
include/asm-um/system-x86_64.h [deleted file]
include/asm-um/termbits.h [deleted file]
include/asm-um/termios.h [deleted file]
include/asm-um/types.h [deleted file]
include/asm-um/ucontext.h [deleted file]
include/asm-um/unaligned.h [deleted file]
include/asm-um/unistd.h [deleted file]
include/asm-um/user.h [deleted file]
include/asm-um/vga.h [deleted file]
include/asm-um/vm86.h [deleted file]
include/asm-x86/irq_remapping.h [deleted file]
include/asm-x86/mach-default/mach_mpspec.h [deleted file]
include/asm-x86/reboot_fixups.h [deleted file]
include/asm-x86/shmparam.h [deleted file]
include/asm-x86/therm_throt.h [deleted file]
include/asm-x86/xen/grant_table.h [deleted file]
scripts/checksyscalls.sh
scripts/kconfig/Makefile

index 16e3fbb968a8966bc58570ca117349631e81f2d7..f6703f1cd9c717bfaccb09f34a745ee4fd306b98 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -437,7 +437,7 @@ ifeq ($(config-targets),1)
 # KBUILD_DEFCONFIG may point out an alternative default configuration
 # used for 'make defconfig'
 include $(srctree)/arch/$(SRCARCH)/Makefile
-export KBUILD_DEFCONFIG
+export KBUILD_DEFCONFIG KBUILD_KCONFIG
 
 config %config: scripts_basic outputmakefile FORCE
        $(Q)mkdir -p include/linux include/config
index 5e901c75df1bda93122aef924613d8a173cb722f..5c93ddd1e42d414066042ec8e876eba7471b551c 100644 (file)
@@ -1,4 +1,4 @@
-#include <asm-x86/unistd_32.h>
+#include "../../x86/include/asm/unistd_32.h"
 
 unsigned ia32_dir_class[] = {
 #include <asm-generic/audit_dir_write.h>
index a7360cdd99eb783b6249c58428ffb744d46007d3..69f709d8e8e750f781c3b7f2a507dd4043ef49d5 100644 (file)
@@ -122,7 +122,6 @@ typedef struct sigaltstack {
 
 #ifdef __KERNEL__
 struct pt_regs;
-extern void do_signal(struct pt_regs *regs, unsigned long thread_info_flags);
 #define ptrace_signal_deliver(regs, cookie) do { } while (0)
 #endif /* __KERNEL__ */
 
index 28f4b9f5fe5e970a505940acd4268ce355be48c3..b427bf8e1d8fa440b714f730240ceca78ef7b850 100644 (file)
@@ -12,6 +12,8 @@
 
 #define _BLOCKABLE (~(sigmask(SIGKILL) | sigmask(SIGSTOP)))
 
+extern void do_signal(struct pt_regs *regs, unsigned long thread_info_flags);
+
 extern void __user * get_sigframe(struct k_sigaction *ka, struct pt_regs *regs,
                                  size_t frame_size);
 extern void restore_sigmask(sigset_t *set);
diff --git a/arch/um/Kconfig.common b/arch/um/Kconfig.common
new file mode 100644 (file)
index 0000000..0d207e7
--- /dev/null
@@ -0,0 +1,77 @@
+config DEFCONFIG_LIST
+       string
+       option defconfig_list
+       default "arch/$ARCH/defconfig"
+
+# UML uses the generic IRQ subsystem
+config GENERIC_HARDIRQS
+       bool
+       default y
+
+config UML
+       bool
+       default y
+
+config MMU
+       bool
+       default y
+
+config NO_IOMEM
+       def_bool y
+
+mainmenu "Linux/Usermode Kernel Configuration"
+
+config ISA
+       bool
+
+config SBUS
+       bool
+
+config PCI
+       bool
+
+config PCMCIA
+       bool
+
+# Yet to do!
+config TRACE_IRQFLAGS_SUPPORT
+       bool
+       default n
+
+config LOCKDEP_SUPPORT
+       bool
+       default y
+
+config STACKTRACE_SUPPORT
+       bool
+       default n
+
+config GENERIC_CALIBRATE_DELAY
+       bool
+       default y
+
+config GENERIC_BUG
+       bool
+       default y
+       depends on BUG
+
+config GENERIC_TIME
+       bool
+       default y
+
+config GENERIC_CLOCKEVENTS
+       bool
+       default y
+
+# Used in kernel/irq/manage.c and include/linux/irq.h
+config IRQ_RELEASE_METHOD
+       bool
+       default y
+
+config HZ
+       int
+       default 100
+
+config SUBARCH
+       string
+       option env="SUBARCH"
diff --git a/arch/um/Kconfig.rest b/arch/um/Kconfig.rest
new file mode 100644 (file)
index 0000000..7b5cea7
--- /dev/null
@@ -0,0 +1,42 @@
+source "init/Kconfig"
+
+source "kernel/Kconfig.freezer"
+
+source "drivers/block/Kconfig"
+
+source "arch/um/Kconfig.char"
+
+source "drivers/base/Kconfig"
+
+source "net/Kconfig"
+
+source "arch/um/Kconfig.net"
+
+source "drivers/net/Kconfig"
+
+source "drivers/connector/Kconfig"
+
+source "fs/Kconfig"
+
+source "security/Kconfig"
+
+source "crypto/Kconfig"
+
+source "lib/Kconfig"
+
+source "drivers/scsi/Kconfig"
+
+source "drivers/md/Kconfig"
+
+if BROKEN
+       source "drivers/mtd/Kconfig"
+endif
+
+source "drivers/leds/Kconfig"
+
+#This is just to shut up some Kconfig warnings, so no prompt.
+config INPUT
+       bool
+       default n
+
+source "arch/um/Kconfig.debug"
similarity index 77%
rename from arch/um/Kconfig
rename to arch/um/Kconfig.um
index 393bccfe1785108579dc6c18bab682f2e7984110..ec2b8da1aba483acb7e80b20c2c14041c81f4e7c 100644 (file)
@@ -1,79 +1,3 @@
-config DEFCONFIG_LIST
-       string
-       option defconfig_list
-       default "arch/$ARCH/defconfig"
-
-# UML uses the generic IRQ subsystem
-config GENERIC_HARDIRQS
-       bool
-       default y
-
-config UML
-       bool
-       default y
-
-config MMU
-       bool
-       default y
-
-config NO_IOMEM
-       def_bool y
-
-mainmenu "Linux/Usermode Kernel Configuration"
-
-config ISA
-       bool
-
-config SBUS
-       bool
-
-config PCI
-       bool
-
-config PCMCIA
-       bool
-
-# Yet to do!
-config TRACE_IRQFLAGS_SUPPORT
-       bool
-       default n
-
-config LOCKDEP_SUPPORT
-       bool
-       default y
-
-config STACKTRACE_SUPPORT
-       bool
-       default n
-
-config GENERIC_CALIBRATE_DELAY
-       bool
-       default y
-
-config GENERIC_BUG
-       bool
-       default y
-       depends on BUG
-
-config GENERIC_TIME
-       bool
-       default y
-
-config GENERIC_CLOCKEVENTS
-       bool
-       default y
-
-# Used in kernel/irq/manage.c and include/linux/irq.h
-config IRQ_RELEASE_METHOD
-       bool
-       default y
-
-config HZ
-       int
-       default 100
-
-menu "UML-specific options"
-
 config STATIC_LINK
        bool "Force a static link"
        default n
@@ -85,7 +9,6 @@ config STATIC_LINK
          Additionally, this option enables using higher memory spaces (up to
          2.75G) for UML.
 
-source "arch/um/Kconfig.arch"
 source "mm/Kconfig"
 source "kernel/time/Kconfig"
 
@@ -224,48 +147,3 @@ config KERNEL_STACK_ORDER
          This option determines the size of UML kernel stacks.  They will
          be 1 << order pages.  The default is OK unless you're running Valgrind
          on UML, in which case, set this to 3.
-
-endmenu
-
-source "init/Kconfig"
-
-source "kernel/Kconfig.freezer"
-
-source "drivers/block/Kconfig"
-
-source "arch/um/Kconfig.char"
-
-source "drivers/base/Kconfig"
-
-source "net/Kconfig"
-
-source "arch/um/Kconfig.net"
-
-source "drivers/net/Kconfig"
-
-source "drivers/connector/Kconfig"
-
-source "fs/Kconfig"
-
-source "security/Kconfig"
-
-source "crypto/Kconfig"
-
-source "lib/Kconfig"
-
-source "drivers/scsi/Kconfig"
-
-source "drivers/md/Kconfig"
-
-if BROKEN
-       source "drivers/mtd/Kconfig"
-endif
-
-source "drivers/leds/Kconfig"
-
-#This is just to shut up some Kconfig warnings, so no prompt.
-config INPUT
-       bool
-       default n
-
-source "arch/um/Kconfig.debug"
similarity index 59%
rename from arch/um/Kconfig.i386
rename to arch/um/Kconfig.x86
index 1f57c113df6dab5d6816b829d994958c1ad657e4..5ee328099c6359ae721f919ba554ba53e7052551 100644 (file)
@@ -1,3 +1,7 @@
+source "arch/um/Kconfig.common"
+
+menu "UML-specific options"
+
 menu "Host processor type and features"
 
 source "arch/x86/Kconfig.cpu"
@@ -5,24 +9,25 @@ source "arch/x86/Kconfig.cpu"
 endmenu
 
 config UML_X86
+       def_bool y
+
+config 64BIT
        bool
-       default y
+       default SUBARCH = "x86_64"
 
 config X86_32
-       bool
-       default y
-       select HAVE_AOUT
+       def_bool !64BIT
+       select HAVE_AOUT
 
 config RWSEM_XCHGADD_ALGORITHM
-       def_bool y
+       def_bool X86_XADD
 
-config 64BIT
-       bool
-       default n
+config RWSEM_GENERIC_SPINLOCK
+       def_bool !X86_XADD
 
 config 3_LEVEL_PGTABLES
-       bool "Three-level pagetables (EXPERIMENTAL)"
-       default n
+       bool "Three-level pagetables (EXPERIMENTAL)" if !64BIT
+       default 64BIT
        depends on EXPERIMENTAL
        help
        Three-level pagetables will let UML have more than 4G of physical
@@ -33,13 +38,19 @@ config 3_LEVEL_PGTABLES
        N (on x86-64 it's automatically enabled, instead, as it's safe there).
 
 config ARCH_HAS_SC_SIGNALS
-       bool
-       default y
+       def_bool !64BIT
 
 config ARCH_REUSE_HOST_VSYSCALL_AREA
-       bool
-       default y
+       def_bool !64BIT
+
+config SMP_BROKEN
+       def_bool 64BIT
 
 config GENERIC_HWEIGHT
-       bool
-       default y
+       def_bool y
+
+source "arch/um/Kconfig.um"
+
+endmenu
+
+source "arch/um/Kconfig.rest"
diff --git a/arch/um/Kconfig.x86_64 b/arch/um/Kconfig.x86_64
deleted file mode 100644 (file)
index 40b3407..0000000
+++ /dev/null
@@ -1,39 +0,0 @@
-
-menu "Host processor type and features"
-
-source "arch/x86/Kconfig.cpu"
-
-endmenu
-
-config UML_X86
-       bool
-       default y
-
-config 64BIT
-       bool
-       default y
-
-#XXX: this is so in the underlying arch, but it's wrong!!!
-config RWSEM_GENERIC_SPINLOCK
-       bool
-       default y
-
-config 3_LEVEL_PGTABLES
-       bool
-       default y
-
-config ARCH_HAS_SC_SIGNALS
-       bool
-       default n
-
-config ARCH_REUSE_HOST_VSYSCALL_AREA
-       bool
-       default n
-
-config SMP_BROKEN
-       bool
-       default y
-
-config GENERIC_HWEIGHT
-       bool
-       default y
index ca40397017b98007a1504fb5761624bda030aeab..d944c343acdb26ab68a9d3243fa58c95ee090868 100644 (file)
@@ -18,28 +18,16 @@ core-y                      += $(ARCH_DIR)/kernel/          \
                           $(ARCH_DIR)/drivers/         \
                           $(ARCH_DIR)/os-$(OS)/
 
-# Have to precede the include because the included Makefiles reference them.
-SYMLINK_HEADERS := archparam.h system.h sigcontext.h processor.h ptrace.h \
-       module.h vm-flags.h elf.h host_ldt.h
-SYMLINK_HEADERS := $(foreach header,$(SYMLINK_HEADERS),include/asm-um/$(header))
-
-# XXX: The "os" symlink is only used by arch/um/include/os.h, which includes
-# ../os/include/file.h
-#
-# These are cleaned up during mrproper. Please DO NOT fix it again, this is
-# the Correct Thing(tm) to do!
-ARCH_SYMLINKS = include/asm-um/arch $(ARCH_DIR)/include/sysdep $(ARCH_DIR)/os \
-       $(SYMLINK_HEADERS) $(ARCH_DIR)/include/uml-config.h
-
-MODE_INCLUDE   += -I$(srctree)/$(ARCH_DIR)/include/skas
+MODE_INCLUDE   += -I$(srctree)/$(ARCH_DIR)/include/shared/skas
 
 include $(srctree)/$(ARCH_DIR)/Makefile-skas
 
-ARCH_INCLUDE   := -I$(ARCH_DIR)/include
+ARCH_INCLUDE   := -I$(srctree)/$(ARCH_DIR)/include/shared
+ARCH_INCLUDE   += -I$(srctree)/$(ARCH_DIR)/sys-$(SUBARCH)/shared
 ifneq ($(KBUILD_SRC),)
-ARCH_INCLUDE   += -I$(srctree)/$(ARCH_DIR)/include
+ARCH_INCLUDE   += -I$(ARCH_DIR)/include/shared # for two generated files
 endif
-SYS_DIR                := $(ARCH_DIR)/include/sysdep-$(SUBARCH)
+KBUILD_CPPFLAGS += -I$(srctree)/$(ARCH_DIR)/sys-$(SUBARCH)
 
 # -Dvmap=kernel_vmap prevents anything from referencing the libpcap.o symbol so
 # named - it's a common symbol in libpcap, so we get a binary which crashes.
@@ -65,6 +53,8 @@ include $(srctree)/$(ARCH_DIR)/Makefile-$(SUBARCH)
 #This will adjust *FLAGS accordingly to the platform.
 include $(srctree)/$(ARCH_DIR)/Makefile-os-$(OS)
 
+KBUILD_CPPFLAGS += -I$(srctree)/arch/$(HEADER_ARCH)/include
+
 # -Derrno=kernel_errno - This turns all kernel references to errno into
 # kernel_errno to separate them from the libc errno.  This allows -fno-common
 # in KBUILD_CFLAGS.  Otherwise, it would cause ld to complain about the two different
@@ -93,14 +83,10 @@ define archhelp
   echo '                  find in the kernel root.'
 endef
 
-ifneq ($(KBUILD_SRC),)
-$(shell mkdir -p $(ARCH_DIR) && ln -fsn $(srctree)/$(ARCH_DIR)/Kconfig.$(SUBARCH) $(ARCH_DIR)/Kconfig.arch)
-else
-$(shell cd $(ARCH_DIR) && ln -sf Kconfig.$(SUBARCH) Kconfig.arch)
-endif
+KBUILD_KCONFIG := arch/um/Kconfig.$(HEADER_ARCH)
 
-archprepare: $(ARCH_SYMLINKS) $(ARCH_DIR)/include/user_constants.h
-prepare: $(ARCH_DIR)/include/kern_constants.h
+archprepare: $(ARCH_DIR)/include/shared/user_constants.h
+prepare: $(ARCH_DIR)/include/shared/kern_constants.h
 
 LINK-$(CONFIG_LD_SCRIPT_STATIC) += -static
 LINK-$(CONFIG_LD_SCRIPT_DYN) += -Wl,-rpath,/lib
@@ -132,62 +118,19 @@ endef
 
 # When cleaning we don't include .config, so we don't include
 # TT or skas makefiles and don't clean skas_ptregs.h.
-CLEAN_FILES += linux x.i gmon.out $(ARCH_DIR)/include/uml-config.h \
-       $(ARCH_DIR)/include/user_constants.h \
-       $(ARCH_DIR)/include/kern_constants.h $(ARCH_DIR)/Kconfig.arch
-
-MRPROPER_FILES += $(ARCH_SYMLINKS)
+CLEAN_FILES += linux x.i gmon.out \
+       $(ARCH_DIR)/include/shared/user_constants.h \
+       $(ARCH_DIR)/include/shared/kern_constants.h
 
 archclean:
        @find . \( -name '*.bb' -o -name '*.bbg' -o -name '*.da' \
                -o -name '*.gcov' \) -type f -print | xargs rm -f
 
-$(SYMLINK_HEADERS):
-       @echo '  SYMLINK $@'
-ifneq ($(KBUILD_SRC),)
-       $(Q)mkdir -p $(objtree)/include/asm-um
-       $(Q)ln -fsn $(srctree)/include/asm-um/$(basename $(notdir $@))-$(SUBARCH)$(suffix $@) $@
-else
-       $(Q)cd $(srctree)/$(dir $@) ; \
-       ln -sf $(basename $(notdir $@))-$(SUBARCH)$(suffix $@) $(notdir $@)
-endif
-
-include/asm-um/arch:
-       @echo '  SYMLINK $@'
-ifneq ($(KBUILD_SRC),)
-       $(Q)mkdir -p $(objtree)/include/asm-um
-       $(Q)ln -fsn $(srctree)/include/asm-$(HEADER_ARCH) include/asm-um/arch
-else
-       $(Q)cd $(srctree)/include/asm-um && ln -fsn ../asm-$(HEADER_ARCH) arch
-endif
-
-$(objtree)/$(ARCH_DIR)/include:
+$(objtree)/$(ARCH_DIR)/include/shared:
        @echo '  MKDIR $@'
        $(Q)mkdir -p $@
 
-$(ARCH_DIR)/include/sysdep: $(objtree)/$(ARCH_DIR)/include
-       @echo '  SYMLINK $@'
-ifneq ($(KBUILD_SRC),)
-       $(Q)ln -fsn $(srctree)/$(ARCH_DIR)/include/sysdep-$(SUBARCH) $(ARCH_DIR)/include/sysdep
-else
-       $(Q)cd $(ARCH_DIR)/include && ln -fsn sysdep-$(SUBARCH) sysdep
-endif
-
-$(ARCH_DIR)/os:
-       @echo '  SYMLINK $@'
-ifneq ($(KBUILD_SRC),)
-       $(Q)ln -fsn $(srctree)/$(ARCH_DIR)/os-$(OS) $(ARCH_DIR)/os
-else
-       $(Q)cd $(ARCH_DIR) && ln -fsn os-$(OS) os
-endif
-
 # Generated files
-define filechk_umlconfig
-       sed 's/ CONFIG/ UML_CONFIG/'
-endef
-
-$(ARCH_DIR)/include/uml-config.h : include/linux/autoconf.h
-       $(call filechk,umlconfig)
 
 $(ARCH_DIR)/sys-$(SUBARCH)/user-offsets.s: FORCE
        $(Q)$(MAKE) $(build)=$(ARCH_DIR)/sys-$(SUBARCH) $@
@@ -205,11 +148,11 @@ define filechk_gen-asm-offsets
          echo ""; )
 endef
 
-$(ARCH_DIR)/include/user_constants.h: $(ARCH_DIR)/sys-$(SUBARCH)/user-offsets.s
+$(ARCH_DIR)/include/shared/user_constants.h: $(ARCH_DIR)/sys-$(SUBARCH)/user-offsets.s
        $(call filechk,gen-asm-offsets)
 
-$(ARCH_DIR)/include/kern_constants.h: $(objtree)/$(ARCH_DIR)/include
+$(ARCH_DIR)/include/shared/kern_constants.h: $(objtree)/$(ARCH_DIR)/include/shared
        @echo '  SYMLINK $@'
-       $(Q)ln -sf ../../../include/asm-um/asm-offsets.h $@
+       $(Q)ln -sf ../../../../include/asm/asm-offsets.h $@
 
-export SUBARCH USER_CFLAGS CFLAGS_NO_HARDENING OS HEADER_ARCH
+export SUBARCH USER_CFLAGS CFLAGS_NO_HARDENING OS HEADER_ARCH DEV_NULL_PATH
index 52859487c95d7d4a2aa9b958144a568b10c99a0f..2c8a598ec14b56221761e7890db42e290e551afe 100644 (file)
@@ -6,3 +6,4 @@
 # To get a definition of F_SETSIG
 USER_CFLAGS += -D_GNU_SOURCE -D_LARGEFILE64_SOURCE
 KBUILD_CFLAGS += -D_LARGEFILE64_SOURCE
+DEV_NULL_PATH = \"/dev/null\"
index d283e7b022a0d8229e3869ad57595178129e0f66..1d9b6ae967b089c780afd713932af0bf42900468 100644 (file)
@@ -62,5 +62,6 @@ obj-$(CONFIG_UML_RANDOM) += random.o
 
 # pcap_user.o must be added explicitly.
 USER_OBJS := fd.o null.o pty.o tty.o xterm.o slip_common.o pcap_user.o vde_user.o
+CFLAGS_null.o = -DDEV_NULL=$(DEV_NULL_PATH)
 
 include arch/um/scripts/Makefile.rules
similarity index 99%
rename from include/asm-um/fixmap.h
rename to arch/um/include/asm/fixmap.h
index 9d2be52b865526586c93a79f1a14d4d7515b820c..69c0252345f10e0ad3061df4d45c325475776c18 100644 (file)
@@ -6,6 +6,7 @@
 #include <asm/kmap_types.h>
 #include <asm/archparam.h>
 #include <asm/page.h>
+#include <linux/threads.h>
 
 /*
  * Here we define all the compile-time 'special' virtual
similarity index 100%
rename from include/asm-um/io.h
rename to arch/um/include/asm/io.h
similarity index 99%
rename from include/asm-um/page.h
rename to arch/um/include/asm/page.h
index a6df1f13d732ddaf7d487fdcb5eabf20a14f6c93..55f28a0bae6d3dd99ee7e23eb01ccb546ba446ef 100644 (file)
@@ -19,7 +19,7 @@
 struct page;
 
 #include <linux/types.h>
-#include <asm/vm-flags.h>
+#include <sysdep/vm-flags.h>
 
 /*
  * These are used to make use of C type-checking..
similarity index 97%
rename from include/asm-um/pgtable.h
rename to arch/um/include/asm/pgtable.h
index 02db81b7b86ea48ffc43ed9405bbe1491959036e..58da2480a7f4229fb164ae81947bfc901de8b27d 100644 (file)
@@ -47,6 +47,7 @@ extern unsigned long end_iomem;
 
 #define VMALLOC_OFFSET (__va_space)
 #define VMALLOC_START ((end_iomem + VMALLOC_OFFSET) & ~(VMALLOC_OFFSET-1))
+#define PKMAP_BASE ((FIXADDR_START - LAST_PKMAP * PAGE_SIZE) & PMD_MASK)
 #ifdef CONFIG_HIGHMEM
 # define VMALLOC_END   (PKMAP_BASE-2*PAGE_SIZE)
 #else
@@ -355,4 +356,11 @@ extern pte_t *virt_to_pte(struct mm_struct *mm, unsigned long addr);
 
 #include <asm-generic/pgtable.h>
 
+/* Clear a kernel PTE and flush it from the TLB */
+#define kpte_clear_flush(ptep, vaddr)          \
+do {                                           \
+       pte_clear(&init_mm, (vaddr), (ptep));   \
+       __flush_tlb_one((vaddr));               \
+} while (0)
+
 #endif
similarity index 97%
rename from include/asm-um/ptrace-generic.h
rename to arch/um/include/asm/ptrace-generic.h
index 315749705ea1b91fccf261ba1161eb785cff9701..6c8899013c92cbf45eaa1039142179374e8136ba 100644 (file)
@@ -8,7 +8,7 @@
 
 #ifndef __ASSEMBLY__
 
-#include "asm/arch/ptrace-abi.h"
+#include <asm/ptrace-abi.h>
 #include <asm/user.h>
 #include "sysdep/ptrace.h"
 
similarity index 79%
rename from include/asm-um/system-generic.h
rename to arch/um/include/asm/system.h
index 5bcfa35e7a22c79eed604df3697ba7c89baeb43d..753346e2cdfd64d5d472f3388014952f5d0ca4ff 100644 (file)
@@ -1,19 +1,7 @@
 #ifndef __UM_SYSTEM_GENERIC_H
 #define __UM_SYSTEM_GENERIC_H
 
-#include "asm/arch/system.h"
-
-#undef switch_to
-#undef local_irq_save
-#undef local_irq_restore
-#undef local_irq_disable
-#undef local_irq_enable
-#undef local_save_flags
-#undef local_irq_restore
-#undef local_irq_enable
-#undef local_irq_disable
-#undef local_irq_save
-#undef irqs_disabled
+#include "sysdep/system.h"
 
 extern void *switch_to(void *prev, void *next, void *last);
 
similarity index 98%
rename from arch/um/include/as-layout.h
rename to arch/um/include/shared/as-layout.h
index 58e852dfb0ce95ff1e6877eaa549c2200b50e620..a92b678503cf78b0d760a436ca9b54440f3aac5c 100644 (file)
@@ -6,7 +6,6 @@
 #ifndef __START_H__
 #define __START_H__
 
-#include "uml-config.h"
 #include "kern_constants.h"
 
 /*
similarity index 80%
rename from arch/um/include/common-offsets.h
rename to arch/um/include/shared/common-offsets.h
index b54bd35585c2d7c306dd6e6def01c2d958dc9d2b..72009c7e3210a036cbbef0b688bd08718eacbb59 100644 (file)
@@ -39,3 +39,16 @@ DEFINE(UM_HZ, HZ);
 DEFINE(UM_USEC_PER_SEC, USEC_PER_SEC);
 DEFINE(UM_NSEC_PER_SEC, NSEC_PER_SEC);
 DEFINE(UM_NSEC_PER_USEC, NSEC_PER_USEC);
+
+#ifdef CONFIG_PRINTK
+DEFINE(UML_CONFIG_PRINTK, CONFIG_PRINTK);
+#endif
+#ifdef CONFIG_NO_HZ
+DEFINE(UML_CONFIG_NO_HZ, CONFIG_NO_HZ);
+#endif
+#ifdef CONFIG_UML_X86
+DEFINE(UML_CONFIG_UML_X86, CONFIG_UML_X86);
+#endif
+#ifdef CONFIG_64BIT
+DEFINE(UML_CONFIG_64BIT, CONFIG_64BIT);
+#endif
similarity index 95%
rename from include/asm-um/ldt.h
rename to arch/um/include/shared/ldt.h
index 52af512f5e7dcf272a73de968b709f900218e98d..a7f999a58774d636f5003f08910f10a5f4dcd40f 100644 (file)
@@ -9,7 +9,7 @@
 #define __ASM_LDT_H
 
 #include <linux/mutex.h>
-#include "asm/host_ldt.h"
+#include <sysdep/host_ldt.h>
 
 extern void ldt_host_info(void);
 
similarity index 99%
rename from arch/um/include/os.h
rename to arch/um/include/shared/os.h
index db5be46e3e186677c8f16c93f585e82413d7740f..cd40fddcf99df8fcf4a583d5c8fe05314d27077c 100644 (file)
@@ -11,7 +11,6 @@
 #include "longjmp.h"
 #include "mm_id.h"
 #include "sysdep/tls.h"
-#include "../os/include/file.h"
 
 #define CATCH_EINTR(expr) while ((errno = 0, ((expr) < 0)) && (errno == EINTR))
 
similarity index 91%
rename from arch/um/include/um_mmu.h
rename to arch/um/include/shared/um_mmu.h
index f575ff91f2a01796951c90090542b18344e6998b..b1a7e47d10277689535add4b4027fe092655f2d0 100644 (file)
@@ -6,9 +6,8 @@
 #ifndef __ARCH_UM_MMU_H
 #define __ARCH_UM_MMU_H
 
-#include "uml-config.h"
 #include "mm_id.h"
-#include "asm/ldt.h"
+#include "ldt.h"
 
 typedef struct mm_context {
        struct mm_id id;
similarity index 97%
rename from arch/um/include/user.h
rename to arch/um/include/shared/user.h
index 1723fac6f40d1eb45329133e4d9146666769076a..293f7c794faa46a38c4767125d5d37201c72c675 100644 (file)
@@ -6,7 +6,7 @@
 #ifndef __USER_H__
 #define __USER_H__
 
-#include "uml-config.h"
+#include "kern_constants.h"
 
 /*
  * The usual definition - copied here because the kernel provides its own,
diff --git a/arch/um/include/sigcontext.h b/arch/um/include/sigcontext.h
deleted file mode 100644 (file)
index 59816ca..0000000
+++ /dev/null
@@ -1,25 +0,0 @@
-/* 
- * Copyright (C) 2001, 2002 Jeff Dike (jdike@karaya.com)
- * Licensed under the GPL
- */
-
-#ifndef __UML_SIGCONTEXT_H__
-#define __UML_SIGCONTEXT_H__
-
-#include "sysdep/sigcontext.h"
-
-extern int sc_size(void *data);
-extern void sc_to_sc(void *to_ptr, void *from_ptr);
-
-#endif
-
-/*
- * Overrides for Emacs so that we follow Linus's tabbing style.
- * Emacs will notice this stuff at the end of the file and automatically
- * adjust the settings for this buffer only.  This must remain at the end
- * of the file.
- * ---------------------------------------------------------------------------
- * Local variables:
- * c-file-style: "linux"
- * End:
- */
index 598711c62c82cbb59ce79193eaa67e70d45b48e3..fda30d21fb90628cec430c151f9e3993df74fc5c 100644 (file)
@@ -15,6 +15,7 @@
 #include "mem_user.h"
 #include "skas.h"
 #include "os.h"
+#include "internal.h"
 
 void flush_thread(void)
 {
diff --git a/arch/um/kernel/internal.h b/arch/um/kernel/internal.h
new file mode 100644 (file)
index 0000000..3bda43c
--- /dev/null
@@ -0,0 +1 @@
+extern long um_execve(char *file, char __user *__user *argv, char __user *__user *env);
index b0fce720c4d08378afba4f642ec97b712ca482c3..b5c094c4ade4020f379856fe9117dce8124be57b 100644 (file)
@@ -11,7 +11,7 @@
 #include <asm/unistd.h>
 #include "frame_kern.h"
 #include "kern_util.h"
-#include "sigcontext.h"
+#include <sysdep/sigcontext.h>
 
 EXPORT_SYMBOL(block_signals);
 EXPORT_SYMBOL(unblock_signals);
index 128ee85bc8d96b78522fb7f1043a913ec0e9d269..c4df705b835937f9256cafe43fcd92c9830eba59 100644 (file)
@@ -12,6 +12,7 @@
 #include "asm/mman.h"
 #include "asm/uaccess.h"
 #include "asm/unistd.h"
+#include "internal.h"
 
 long sys_fork(void)
 {
diff --git a/arch/um/os-Linux/include/file.h b/arch/um/os-Linux/include/file.h
deleted file mode 100644 (file)
index fe71be2..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-/* 
- * Copyright (C) 2002 - 2007 Jeff Dike (jdike@{addtoit,linux.intel}.com)
- * Licensed under the GPL
- */
-
-#ifndef __OS_FILE_H__
-#define __OS_FILE_H__
-
-#define DEV_NULL "/dev/null"
-
-#endif
index 484e68f9f7ae7362a0e36b87505ed9048f7302f2..d261f170d120862010cbea1facfe6d4bcc8ab69d 100644 (file)
@@ -20,7 +20,6 @@
 #include "user.h"
 #include "sysdep/ptrace.h"
 #include "sysdep/stub.h"
-#include "uml-config.h"
 
 extern unsigned long batch_syscall_stub, __syscall_stub_start;
 
similarity index 77%
rename from include/asm-um/archparam-i386.h
rename to arch/um/sys-i386/asm/archparam.h
index 49e89b8d7e588354d47a896a824f4e25c3970e7c..93fd723344e54fef2cc64c12b10023cc3538d61f 100644 (file)
@@ -6,11 +6,11 @@
 #ifndef __UM_ARCHPARAM_I386_H
 #define __UM_ARCHPARAM_I386_H
 
-/********* Nothing for asm-um/hardirq.h **********/
-
-/********* Nothing for asm-um/hw_irq.h **********/
-
-/********* Nothing for asm-um/string.h **********/
+#ifdef CONFIG_X86_PAE
+#define LAST_PKMAP 512
+#else
+#define LAST_PKMAP 1024
+#endif
 
 #endif
 
similarity index 97%
rename from include/asm-um/processor-i386.h
rename to arch/um/sys-i386/asm/processor.h
index a2b7fe13fe1e48179b1fd5f0eeff8315dcb15b0d..82a9061ab5be641fb72763e89efe96c1f346f08e 100644 (file)
@@ -7,7 +7,7 @@
 #define __UM_PROCESSOR_I386_H
 
 #include "linux/string.h"
-#include "asm/host_ldt.h"
+#include <sysdep/host_ldt.h>
 #include "asm/segment.h"
 
 extern int host_has_cmov;
@@ -48,7 +48,7 @@ static inline void arch_copy_thread(struct arch_thread *from,
         memcpy(&to->tls_array, &from->tls_array, sizeof(from->tls_array));
 }
 
-#include "asm/arch/user.h"
+#include <asm/user.h>
 
 /* REP NOP (PAUSE) is a good thing to insert into busy-wait loops. */
 static inline void rep_nop(void)
similarity index 93%
rename from include/asm-um/ptrace-i386.h
rename to arch/um/sys-i386/asm/ptrace.h
index b2d24c5ea2c3237ed1a573666ced4f7205004d0d..0273e4d09af7b65e47c5dab30936f5d1acd69643 100644 (file)
@@ -10,8 +10,6 @@
 
 #include "linux/compiler.h"
 #include "asm/ptrace-generic.h"
-#include <asm/user.h>
-#include "sysdep/ptrace.h"
 
 #define PT_REGS_EAX(r) UPT_EAX(&(r)->regs)
 #define PT_REGS_EBX(r) UPT_EBX(&(r)->regs)
@@ -34,8 +32,6 @@
 #define PT_REGS_SYSCALL_RET(r) PT_REGS_EAX(r)
 #define PT_FIX_EXEC_STACK(sp) do ; while(0)
 
-/* Cope with a conditional i386 definition. */
-#undef profile_pc
 #define profile_pc(regs) PT_REGS_IP(regs)
 
 #define user_mode(r) UPT_IS_USER(&(r)->regs)
similarity index 97%
rename from include/asm-um/host_ldt-i386.h
rename to arch/um/sys-i386/shared/sysdep/host_ldt.h
index b27cb0a9dd30a016f2f3dee36111454530262991..0953cc4df65284bc61745abb2fdb487935aef03b 100644 (file)
@@ -1,7 +1,7 @@
 #ifndef __ASM_HOST_LDT_I386_H
 #define __ASM_HOST_LDT_I386_H
 
-#include "asm/arch/ldt.h"
+#include <asm/ldt.h>
 
 /*
  * macros stolen from include/asm-i386/desc.h
similarity index 99%
rename from arch/um/include/sysdep-i386/ptrace.h
rename to arch/um/sys-i386/shared/sysdep/ptrace.h
index 11c08969d1342b8fce90a27233b87b979f57218a..d50e62e070707ce6ca88b9e8f450ac5eec61d98e 100644 (file)
@@ -6,7 +6,6 @@
 #ifndef __SYSDEP_I386_PTRACE_H
 #define __SYSDEP_I386_PTRACE_H
 
-#include "uml-config.h"
 #include "user_constants.h"
 #include "sysdep/faultinfo.h"
 
similarity index 98%
rename from arch/um/include/sysdep-i386/stub.h
rename to arch/um/sys-i386/shared/sysdep/stub.h
index 8c097b87fca7be4b3ea209feff41aa4fa2adc3d6..977dedd9221bf44cd97a0611febb727486f823a3 100644 (file)
@@ -12,7 +12,6 @@
 #include "as-layout.h"
 #include "stub-data.h"
 #include "kern_constants.h"
-#include "uml-config.h"
 
 extern void stub_segv_handler(int sig);
 extern void stub_clone_handler(void);
diff --git a/arch/um/sys-i386/shared/sysdep/system.h b/arch/um/sys-i386/shared/sysdep/system.h
new file mode 100644 (file)
index 0000000..d1b93c4
--- /dev/null
@@ -0,0 +1,132 @@
+#ifndef _ASM_X86_SYSTEM_H_
+#define _ASM_X86_SYSTEM_H_
+
+#include <asm/asm.h>
+#include <asm/segment.h>
+#include <asm/cpufeature.h>
+#include <asm/cmpxchg.h>
+#include <asm/nops.h>
+
+#include <linux/kernel.h>
+#include <linux/irqflags.h>
+
+/* entries in ARCH_DLINFO: */
+#ifdef CONFIG_IA32_EMULATION
+# define AT_VECTOR_SIZE_ARCH 2
+#else
+# define AT_VECTOR_SIZE_ARCH 1
+#endif
+
+extern unsigned long arch_align_stack(unsigned long sp);
+
+void default_idle(void);
+
+/*
+ * Force strict CPU ordering.
+ * And yes, this is required on UP too when we're talking
+ * to devices.
+ */
+#ifdef CONFIG_X86_32
+/*
+ * Some non-Intel clones support out of order store. wmb() ceases to be a
+ * nop for these.
+ */
+#define mb() alternative("lock; addl $0,0(%%esp)", "mfence", X86_FEATURE_XMM2)
+#define rmb() alternative("lock; addl $0,0(%%esp)", "lfence", X86_FEATURE_XMM2)
+#define wmb() alternative("lock; addl $0,0(%%esp)", "sfence", X86_FEATURE_XMM)
+#else
+#define mb()   asm volatile("mfence":::"memory")
+#define rmb()  asm volatile("lfence":::"memory")
+#define wmb()  asm volatile("sfence" ::: "memory")
+#endif
+
+/**
+ * read_barrier_depends - Flush all pending reads that subsequents reads
+ * depend on.
+ *
+ * No data-dependent reads from memory-like regions are ever reordered
+ * over this barrier.  All reads preceding this primitive are guaranteed
+ * to access memory (but not necessarily other CPUs' caches) before any
+ * reads following this primitive that depend on the data return by
+ * any of the preceding reads.  This primitive is much lighter weight than
+ * rmb() on most CPUs, and is never heavier weight than is
+ * rmb().
+ *
+ * These ordering constraints are respected by both the local CPU
+ * and the compiler.
+ *
+ * Ordering is not guaranteed by anything other than these primitives,
+ * not even by data dependencies.  See the documentation for
+ * memory_barrier() for examples and URLs to more information.
+ *
+ * For example, the following code would force ordering (the initial
+ * value of "a" is zero, "b" is one, and "p" is "&a"):
+ *
+ * <programlisting>
+ *     CPU 0                           CPU 1
+ *
+ *     b = 2;
+ *     memory_barrier();
+ *     p = &b;                         q = p;
+ *                                     read_barrier_depends();
+ *                                     d = *q;
+ * </programlisting>
+ *
+ * because the read of "*q" depends on the read of "p" and these
+ * two reads are separated by a read_barrier_depends().  However,
+ * the following code, with the same initial values for "a" and "b":
+ *
+ * <programlisting>
+ *     CPU 0                           CPU 1
+ *
+ *     a = 2;
+ *     memory_barrier();
+ *     b = 3;                          y = b;
+ *                                     read_barrier_depends();
+ *                                     x = a;
+ * </programlisting>
+ *
+ * does not enforce ordering, since there is no data dependency between
+ * the read of "a" and the read of "b".  Therefore, on some CPUs, such
+ * as Alpha, "y" could be set to 3 and "x" to 0.  Use rmb()
+ * in cases like this where there are no data dependencies.
+ **/
+
+#define read_barrier_depends() do { } while (0)
+
+#ifdef CONFIG_SMP
+#define smp_mb()       mb()
+#ifdef CONFIG_X86_PPRO_FENCE
+# define smp_rmb()     rmb()
+#else
+# define smp_rmb()     barrier()
+#endif
+#ifdef CONFIG_X86_OOSTORE
+# define smp_wmb()     wmb()
+#else
+# define smp_wmb()     barrier()
+#endif
+#define smp_read_barrier_depends()     read_barrier_depends()
+#define set_mb(var, value) do { (void)xchg(&var, value); } while (0)
+#else
+#define smp_mb()       barrier()
+#define smp_rmb()      barrier()
+#define smp_wmb()      barrier()
+#define smp_read_barrier_depends()     do { } while (0)
+#define set_mb(var, value) do { var = value; barrier(); } while (0)
+#endif
+
+/*
+ * Stop RDTSC speculation. This is needed when you need to use RDTSC
+ * (or get_cycles or vread that possibly accesses the TSC) in a defined
+ * code region.
+ *
+ * (Could use an alternative three way for this if there was one.)
+ */
+static inline void rdtsc_barrier(void)
+{
+       alternative(ASM_NOP3, "mfence", X86_FEATURE_MFENCE_RDTSC);
+       alternative(ASM_NOP3, "lfence", X86_FEATURE_LFENCE_RDTSC);
+}
+
+#endif
similarity index 97%
rename from arch/um/include/sysdep-i386/tls.h
rename to arch/um/sys-i386/shared/sysdep/tls.h
index 918fd3c5ff9cad3ff4854fb47010386bf20f3bc3..34550755b2a1621939f597f2b86c4bfa77de0551 100644 (file)
@@ -21,7 +21,7 @@ typedef struct um_dup_user_desc {
 
 # else /* __KERNEL__ */
 
-#  include <asm/ldt.h>
+#  include <ldt.h>
 typedef struct user_desc user_desc_t;
 
 # endif /* __KERNEL__ */
index 7699e89f660fd42701736ce1bfe79e4d6b2d0ddc..c41b04bf5fa005399183176935a683dbfe92d3ce 100644 (file)
@@ -1,4 +1,3 @@
-#include "uml-config.h"
 #include "as-layout.h"
 
        .globl syscall_stub
index e2d14268441201d87f09c1adfb27f9a14233f24e..857ca0b3bdef136a78b7eb59a00b2de4a14b6aed 100644 (file)
@@ -6,6 +6,7 @@
 #include "linux/sched.h"
 #include "linux/shm.h"
 #include "linux/ipc.h"
+#include "linux/syscalls.h"
 #include "asm/mman.h"
 #include "asm/uaccess.h"
 #include "asm/unistd.h"
similarity index 97%
rename from include/asm-um/processor-x86_64.h
rename to arch/um/sys-x86_64/asm/processor.h
index e50933175e9105206e207afcdc61ec46d0d49463..875a26a62614a9ae7f1788cc6549ebafc99aca07 100644 (file)
@@ -40,7 +40,7 @@ static inline void arch_copy_thread(struct arch_thread *from,
        to->fs = from->fs;
 }
 
-#include "asm/arch/user.h"
+#include <asm/user.h>
 
 #define current_text_addr() \
        ({ void *pc; __asm__("movq $1f,%0\n1:":"=g" (pc)); pc; })
similarity index 85%
rename from include/asm-um/ptrace-x86_64.h
rename to arch/um/sys-x86_64/asm/ptrace.h
index 4c475350dcf02a545102042493508d9aa70686ba..83d8c473b905886b62585cf43839473a12fb791f 100644 (file)
@@ -9,23 +9,12 @@
 
 #include "linux/compiler.h"
 #include "asm/errno.h"
-#include "asm/host_ldt.h"
 
 #define __FRAME_OFFSETS /* Needed to get the R* macros */
 #include "asm/ptrace-generic.h"
 
 #define HOST_AUDIT_ARCH AUDIT_ARCH_X86_64
 
-/* Also defined in sysdep/ptrace.h, so may already be defined. */
-#ifndef FS_BASE
-#define FS_BASE (21 * sizeof(unsigned long))
-#define GS_BASE (22 * sizeof(unsigned long))
-#define DS (23 * sizeof(unsigned long))
-#define ES (24 * sizeof(unsigned long))
-#define FS (25 * sizeof(unsigned long))
-#define GS (26 * sizeof(unsigned long))
-#endif
-
 #define PT_REGS_RBX(r) UPT_RBX(&(r)->regs)
 #define PT_REGS_RCX(r) UPT_RCX(&(r)->regs)
 #define PT_REGS_RDX(r) UPT_RDX(&(r)->regs)
@@ -64,6 +53,8 @@
 
 #define profile_pc(regs) PT_REGS_IP(regs)
 
+struct user_desc;
+
 static inline int ptrace_get_thread_area(struct task_struct *child, int idx,
                                          struct user_desc __user *user_desc)
 {
similarity index 97%
rename from include/asm-um/host_ldt-x86_64.h
rename to arch/um/sys-x86_64/shared/sysdep/host_ldt.h
index 74a63f7d9a90b10a8c0571ac8c18abff717e4337..e8b1be1e154f44a6437b5b78d1c7fe120784e7e2 100644 (file)
@@ -1,7 +1,7 @@
 #ifndef __ASM_HOST_LDT_X86_64_H
 #define __ASM_HOST_LDT_X86_64_H
 
-#include "asm/arch/ldt.h"
+#include <asm/ldt.h>
 
 /*
  * macros stolen from include/asm-x86_64/desc.h
similarity index 99%
rename from arch/um/include/sysdep-x86_64/ptrace.h
rename to arch/um/sys-x86_64/shared/sysdep/ptrace.h
index 9ea44d111f335c5184fdd8924cd72a5fc0b52ac2..fdba5457947a0cc7f16cfd34d30a63bb05120e0d 100644 (file)
@@ -8,7 +8,6 @@
 #ifndef __SYSDEP_X86_64_PTRACE_H
 #define __SYSDEP_X86_64_PTRACE_H
 
-#include "uml-config.h"
 #include "user_constants.h"
 #include "sysdep/faultinfo.h"
 
similarity index 98%
rename from arch/um/include/sysdep-x86_64/stub.h
rename to arch/um/sys-x86_64/shared/sysdep/stub.h
index 655f9c2de3ac0b127a6e57729b5d5ab3de7b9540..3432aa249970c54880fbae342d5c9b1c28cc619e 100644 (file)
@@ -12,7 +12,6 @@
 #include "as-layout.h"
 #include "stub-data.h"
 #include "kern_constants.h"
-#include "uml-config.h"
 
 extern void stub_segv_handler(int sig);
 extern void stub_clone_handler(void);
diff --git a/arch/um/sys-x86_64/shared/sysdep/system.h b/arch/um/sys-x86_64/shared/sysdep/system.h
new file mode 100644 (file)
index 0000000..d1b93c4
--- /dev/null
@@ -0,0 +1,132 @@
+#ifndef _ASM_X86_SYSTEM_H_
+#define _ASM_X86_SYSTEM_H_
+
+#include <asm/asm.h>
+#include <asm/segment.h>
+#include <asm/cpufeature.h>
+#include <asm/cmpxchg.h>
+#include <asm/nops.h>
+
+#include <linux/kernel.h>
+#include <linux/irqflags.h>
+
+/* entries in ARCH_DLINFO: */
+#ifdef CONFIG_IA32_EMULATION
+# define AT_VECTOR_SIZE_ARCH 2
+#else
+# define AT_VECTOR_SIZE_ARCH 1
+#endif
+
+extern unsigned long arch_align_stack(unsigned long sp);
+
+void default_idle(void);
+
+/*
+ * Force strict CPU ordering.
+ * And yes, this is required on UP too when we're talking
+ * to devices.
+ */
+#ifdef CONFIG_X86_32
+/*
+ * Some non-Intel clones support out of order store. wmb() ceases to be a
+ * nop for these.
+ */
+#define mb() alternative("lock; addl $0,0(%%esp)", "mfence", X86_FEATURE_XMM2)
+#define rmb() alternative("lock; addl $0,0(%%esp)", "lfence", X86_FEATURE_XMM2)
+#define wmb() alternative("lock; addl $0,0(%%esp)", "sfence", X86_FEATURE_XMM)
+#else
+#define mb()   asm volatile("mfence":::"memory")
+#define rmb()  asm volatile("lfence":::"memory")
+#define wmb()  asm volatile("sfence" ::: "memory")
+#endif
+
+/**
+ * read_barrier_depends - Flush all pending reads that subsequents reads
+ * depend on.
+ *
+ * No data-dependent reads from memory-like regions are ever reordered
+ * over this barrier.  All reads preceding this primitive are guaranteed
+ * to access memory (but not necessarily other CPUs' caches) before any
+ * reads following this primitive that depend on the data return by
+ * any of the preceding reads.  This primitive is much lighter weight than
+ * rmb() on most CPUs, and is never heavier weight than is
+ * rmb().
+ *
+ * These ordering constraints are respected by both the local CPU
+ * and the compiler.
+ *
+ * Ordering is not guaranteed by anything other than these primitives,
+ * not even by data dependencies.  See the documentation for
+ * memory_barrier() for examples and URLs to more information.
+ *
+ * For example, the following code would force ordering (the initial
+ * value of "a" is zero, "b" is one, and "p" is "&a"):
+ *
+ * <programlisting>
+ *     CPU 0                           CPU 1
+ *
+ *     b = 2;
+ *     memory_barrier();
+ *     p = &b;                         q = p;
+ *                                     read_barrier_depends();
+ *                                     d = *q;
+ * </programlisting>
+ *
+ * because the read of "*q" depends on the read of "p" and these
+ * two reads are separated by a read_barrier_depends().  However,
+ * the following code, with the same initial values for "a" and "b":
+ *
+ * <programlisting>
+ *     CPU 0                           CPU 1
+ *
+ *     a = 2;
+ *     memory_barrier();
+ *     b = 3;                          y = b;
+ *                                     read_barrier_depends();
+ *                                     x = a;
+ * </programlisting>
+ *
+ * does not enforce ordering, since there is no data dependency between
+ * the read of "a" and the read of "b".  Therefore, on some CPUs, such
+ * as Alpha, "y" could be set to 3 and "x" to 0.  Use rmb()
+ * in cases like this where there are no data dependencies.
+ **/
+
+#define read_barrier_depends() do { } while (0)
+
+#ifdef CONFIG_SMP
+#define smp_mb()       mb()
+#ifdef CONFIG_X86_PPRO_FENCE
+# define smp_rmb()     rmb()
+#else
+# define smp_rmb()     barrier()
+#endif
+#ifdef CONFIG_X86_OOSTORE
+# define smp_wmb()     wmb()
+#else
+# define smp_wmb()     barrier()
+#endif
+#define smp_read_barrier_depends()     read_barrier_depends()
+#define set_mb(var, value) do { (void)xchg(&var, value); } while (0)
+#else
+#define smp_mb()       barrier()
+#define smp_rmb()      barrier()
+#define smp_wmb()      barrier()
+#define smp_read_barrier_depends()     do { } while (0)
+#define set_mb(var, value) do { var = value; barrier(); } while (0)
+#endif
+
+/*
+ * Stop RDTSC speculation. This is needed when you need to use RDTSC
+ * (or get_cycles or vread that possibly accesses the TSC) in a defined
+ * code region.
+ *
+ * (Could use an alternative three way for this if there was one.)
+ */
+static inline void rdtsc_barrier(void)
+{
+       alternative(ASM_NOP3, "mfence", X86_FEATURE_MFENCE_RDTSC);
+       alternative(ASM_NOP3, "lfence", X86_FEATURE_LFENCE_RDTSC);
+}
+
+#endif
similarity index 96%
rename from arch/um/include/sysdep-x86_64/tls.h
rename to arch/um/sys-x86_64/shared/sysdep/tls.h
index 35f19f25bd3b749240ba5a7591fb55023cc666a1..18c000d0357a3fb465605cdd881988fff9d28c74 100644 (file)
@@ -22,7 +22,7 @@ typedef struct um_dup_user_desc {
 
 # else /* __KERNEL__ */
 
-#  include <asm/ldt.h>
+#  include <ldt.h>
 typedef struct user_desc user_desc_t;
 
 # endif /* __KERNEL__ */
index 5687687631554dabc7e61719a4a900d8d5f691c1..6d9edf9fabce15d4dac536ae8ce18e70b301822e 100644 (file)
@@ -1,4 +1,3 @@
-#include "uml-config.h"
 #include "as-layout.h"
 
        .globl syscall_stub
index 32f5fbe2d0d2fe2aca4a7f3b5eeec80b3eb6d87d..dd21d69715e62abc7bacc3fde820466f9320cf44 100644 (file)
 #define stub_rt_sigreturn sys_rt_sigreturn
 
 #define __SYSCALL(nr, sym) extern asmlinkage void sym(void) ;
-#undef ASM_X86__UNISTD_64_H
-#include <asm-x86/unistd_64.h>
+#undef _ASM_X86_UNISTD_64_H
+#include "../../x86/include/asm/unistd_64.h"
 
 #undef __SYSCALL
 #define __SYSCALL(nr, sym) [ nr ] = sym,
-#undef ASM_X86__UNISTD_64_H
+#undef _ASM_X86_UNISTD_64_H
 
 typedef void (*sys_call_ptr_t)(void);
 
@@ -64,7 +64,7 @@ extern void sys_ni_syscall(void);
  */
 
 sys_call_ptr_t sys_call_table[] __cacheline_aligned = {
-#include <asm-x86/unistd_64.h>
+#include "../../x86/include/asm/unistd_64.h"
 };
 
 int syscall_table_size = sizeof(sys_call_table);
index f5631da585b69ac1722891bc0bee1e63a1ec652c..d1a47adb5aec0b14cfd6b52297be80f87fbf0682 100644 (file)
@@ -110,16 +110,16 @@ KBUILD_CFLAGS += $(call cc-option,-mno-sse -mno-mmx -mno-sse2 -mno-3dnow,)
 mcore-y  := arch/x86/mach-default/
 
 # Voyager subarch support
-mflags-$(CONFIG_X86_VOYAGER)   := -Iinclude/asm-x86/mach-voyager
+mflags-$(CONFIG_X86_VOYAGER)   := -Iarch/x86/include/asm/mach-voyager
 mcore-$(CONFIG_X86_VOYAGER)    := arch/x86/mach-voyager/
 
 # generic subarchitecture
-mflags-$(CONFIG_X86_GENERICARCH):= -Iinclude/asm-x86/mach-generic
+mflags-$(CONFIG_X86_GENERICARCH):= -Iarch/x86/include/asm/mach-generic
 fcore-$(CONFIG_X86_GENERICARCH)        += arch/x86/mach-generic/
 mcore-$(CONFIG_X86_GENERICARCH)        := arch/x86/mach-default/
 
 # default subarch .h files
-mflags-y += -Iinclude/asm-x86/mach-default
+mflags-y += -Iarch/x86/include/asm/mach-default
 
 # 64 bit does not support subarch support - clear sub arch variables
 fcore-$(CONFIG_X86_64)  :=
index 5780d361105bf4863328243386ed69ecdbc89889..da062216948a6951990f354fa11ee9125b865fe7 100644 (file)
@@ -16,7 +16,7 @@
  */
 #undef CONFIG_PARAVIRT
 #ifdef CONFIG_X86_32
-#define ASM_X86__DESC_H 1
+#define _ASM_X86_DESC_H 1
 #endif
 
 #ifdef CONFIG_X86_64
similarity index 95%
rename from include/asm-x86/a.out-core.h
rename to arch/x86/include/asm/a.out-core.h
index f5705761a37b14509c5603e79c69292fdb4adb66..37822206083e2684026984d69ee8732a9b74118a 100644 (file)
@@ -9,8 +9,8 @@
  * 2 of the Licence, or (at your option) any later version.
  */
 
-#ifndef ASM_X86__A_OUT_CORE_H
-#define ASM_X86__A_OUT_CORE_H
+#ifndef _ASM_X86_A_OUT_CORE_H
+#define _ASM_X86_A_OUT_CORE_H
 
 #ifdef __KERNEL__
 #ifdef CONFIG_X86_32
@@ -70,4 +70,4 @@ static inline void aout_dump_thread(struct pt_regs *regs, struct user *dump)
 
 #endif /* CONFIG_X86_32 */
 #endif /* __KERNEL__ */
-#endif /* ASM_X86__A_OUT_CORE_H */
+#endif /* _ASM_X86_A_OUT_CORE_H */
similarity index 88%
rename from include/asm-x86/a.out.h
rename to arch/x86/include/asm/a.out.h
index 0948748bc69c1dd8f694c34878551868e01a3da7..4684f97a5bbd1b1edce881a88e75393b580a2cd1 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__A_OUT_H
-#define ASM_X86__A_OUT_H
+#ifndef _ASM_X86_A_OUT_H
+#define _ASM_X86_A_OUT_H
 
 struct exec
 {
@@ -17,4 +17,4 @@ struct exec
 #define N_DRSIZE(a)    ((a).a_drsize)
 #define N_SYMSIZE(a)   ((a).a_syms)
 
-#endif /* ASM_X86__A_OUT_H */
+#endif /* _ASM_X86_A_OUT_H */
similarity index 98%
rename from include/asm-x86/acpi.h
rename to arch/x86/include/asm/acpi.h
index 392e17336be1dede3964b6e61ca4cdf568b258fd..8d676d8ecde93d2bd0f76f5891ea5982970aae8a 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__ACPI_H
-#define ASM_X86__ACPI_H
+#ifndef _ASM_X86_ACPI_H
+#define _ASM_X86_ACPI_H
 
 /*
  *  Copyright (C) 2001 Paul Diefenbaugh <paul.s.diefenbaugh@intel.com>
@@ -175,4 +175,4 @@ static inline void acpi_fake_nodes(const struct bootnode *fake_nodes,
 
 #define acpi_unlazy_tlb(x)     leave_mm(x)
 
-#endif /* ASM_X86__ACPI_H */
+#endif /* _ASM_X86_ACPI_H */
similarity index 93%
rename from include/asm-x86/agp.h
rename to arch/x86/include/asm/agp.h
index 3617fd4fcdf9faa1f110055cd33f607e98662c76..9825cd64c9b6e7126432e14c0ee6aebd804a799c 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__AGP_H
-#define ASM_X86__AGP_H
+#ifndef _ASM_X86_AGP_H
+#define _ASM_X86_AGP_H
 
 #include <asm/pgtable.h>
 #include <asm/cacheflush.h>
@@ -32,4 +32,4 @@
 #define free_gatt_pages(table, order)  \
        free_pages((unsigned long)(table), (order))
 
-#endif /* ASM_X86__AGP_H */
+#endif /* _ASM_X86_AGP_H */
similarity index 98%
rename from include/asm-x86/alternative.h
rename to arch/x86/include/asm/alternative.h
index 22d3c9862bf3b3a0967df0c9c2f2b7038d6e1ba3..f6aa18eadf71717d9e86c53ac3719776fa035969 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__ALTERNATIVE_H
-#define ASM_X86__ALTERNATIVE_H
+#ifndef _ASM_X86_ALTERNATIVE_H
+#define _ASM_X86_ALTERNATIVE_H
 
 #include <linux/types.h>
 #include <linux/stddef.h>
@@ -180,4 +180,4 @@ extern void add_nops(void *insns, unsigned int len);
 extern void *text_poke(void *addr, const void *opcode, size_t len);
 extern void *text_poke_early(void *addr, const void *opcode, size_t len);
 
-#endif /* ASM_X86__ALTERNATIVE_H */
+#endif /* _ASM_X86_ALTERNATIVE_H */
similarity index 92%
rename from include/asm-x86/amd_iommu.h
rename to arch/x86/include/asm/amd_iommu.h
index 041d0db7da272d42abe5d5659f38da6fe2b0e590..f712344329bc7a6929a38f8e0e968bd1166e4c9e 100644 (file)
@@ -17,8 +17,8 @@
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
  */
 
-#ifndef ASM_X86__AMD_IOMMU_H
-#define ASM_X86__AMD_IOMMU_H
+#ifndef _ASM_X86_AMD_IOMMU_H
+#define _ASM_X86_AMD_IOMMU_H
 
 #include <linux/irqreturn.h>
 
@@ -32,4 +32,4 @@ static inline int amd_iommu_init(void) { return -ENODEV; }
 static inline void amd_iommu_detect(void) { }
 #endif
 
-#endif /* ASM_X86__AMD_IOMMU_H */
+#endif /* _ASM_X86_AMD_IOMMU_H */
similarity index 99%
rename from include/asm-x86/amd_iommu_types.h
rename to arch/x86/include/asm/amd_iommu_types.h
index b3085869a17b04aaa686e7360c2c424d0d875969..1a30c0440c6bb4c907b400313c7bbd1865bb9298 100644 (file)
@@ -17,8 +17,8 @@
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
  */
 
-#ifndef ASM_X86__AMD_IOMMU_TYPES_H
-#define ASM_X86__AMD_IOMMU_TYPES_H
+#ifndef _ASM_X86_AMD_IOMMU_TYPES_H
+#define _ASM_X86_AMD_IOMMU_TYPES_H
 
 #include <linux/types.h>
 #include <linux/list.h>
@@ -401,4 +401,4 @@ static inline u16 calc_devid(u8 bus, u8 devfn)
        return (((u16)bus) << 8) | devfn;
 }
 
-#endif /* ASM_X86__AMD_IOMMU_TYPES_H */
+#endif /* _ASM_X86_AMD_IOMMU_TYPES_H */
similarity index 98%
rename from include/asm-x86/apic.h
rename to arch/x86/include/asm/apic.h
index ef1d72dbdfe02b74d389c2067af12373db2cd3de..3b1510b4fc5741290d5660bb4c30f34bc70f6371 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__APIC_H
-#define ASM_X86__APIC_H
+#ifndef _ASM_X86_APIC_H
+#define _ASM_X86_APIC_H
 
 #include <linux/pm.h>
 #include <linux/delay.h>
@@ -196,4 +196,4 @@ static inline void init_apic_mappings(void) { }
 
 #endif /* !CONFIG_X86_LOCAL_APIC */
 
-#endif /* ASM_X86__APIC_H */
+#endif /* _ASM_X86_APIC_H */
similarity index 99%
rename from include/asm-x86/apicdef.h
rename to arch/x86/include/asm/apicdef.h
index b922c85ac91d8ab0e3f8fbd6c993f22ffe047879..63134e31e8b933acb973ee2e66f62a2f815bb326 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__APICDEF_H
-#define ASM_X86__APICDEF_H
+#ifndef _ASM_X86_APICDEF_H
+#define _ASM_X86_APICDEF_H
 
 /*
  * Constants for various Intel APICs. (local APIC, IOAPIC, etc.)
@@ -414,4 +414,4 @@ struct local_apic {
 #else
  #define BAD_APICID 0xFFFFu
 #endif
-#endif /* ASM_X86__APICDEF_H */
+#endif /* _ASM_X86_APICDEF_H */
similarity index 86%
rename from include/asm-x86/arch_hooks.h
rename to arch/x86/include/asm/arch_hooks.h
index de4596b24c23a8e4a0e14135125d051f25a3fcdf..cbd4957838a60d83ad767e5b8a1935aa44d30f5a 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__ARCH_HOOKS_H
-#define ASM_X86__ARCH_HOOKS_H
+#ifndef _ASM_X86_ARCH_HOOKS_H
+#define _ASM_X86_ARCH_HOOKS_H
 
 #include <linux/interrupt.h>
 
@@ -23,4 +23,4 @@ extern void pre_time_init_hook(void);
 extern void time_init_hook(void);
 extern void mca_nmi_hook(void);
 
-#endif /* ASM_X86__ARCH_HOOKS_H */
+#endif /* _ASM_X86_ARCH_HOOKS_H */
similarity index 93%
rename from include/asm-x86/asm.h
rename to arch/x86/include/asm/asm.h
index e1355f44d7c3395753317faaf2b2fb61f100bfea..56be78f582f0eabff9f9a64545a15bc28b518710 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__ASM_H
-#define ASM_X86__ASM_H
+#ifndef _ASM_X86_ASM_H
+#define _ASM_X86_ASM_H
 
 #ifdef __ASSEMBLY__
 # define __ASM_FORM(x) x
@@ -44,4 +44,4 @@
        _ASM_PTR #from "," #to "\n" \
        " .previous\n"
 
-#endif /* ASM_X86__ASM_H */
+#endif /* _ASM_X86_ASM_H */
similarity index 98%
rename from include/asm-x86/atomic_32.h
rename to arch/x86/include/asm/atomic_32.h
index 14d3f0beb889917c3d6af356bdd84d114a7cae06..ad5b9f6ecddf317e32f1abad071246b61471999a 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__ATOMIC_32_H
-#define ASM_X86__ATOMIC_32_H
+#ifndef _ASM_X86_ATOMIC_32_H
+#define _ASM_X86_ATOMIC_32_H
 
 #include <linux/compiler.h>
 #include <asm/processor.h>
@@ -256,4 +256,4 @@ static inline int atomic_add_unless(atomic_t *v, int a, int u)
 #define smp_mb__after_atomic_inc()     barrier()
 
 #include <asm-generic/atomic.h>
-#endif /* ASM_X86__ATOMIC_32_H */
+#endif /* _ASM_X86_ATOMIC_32_H */
similarity index 99%
rename from include/asm-x86/atomic_64.h
rename to arch/x86/include/asm/atomic_64.h
index 2cb218c4a356ce332b2e887b88e8d146e602fe84..279d2a731f3fb57e9cdb061d1917df4ed7bb053e 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__ATOMIC_64_H
-#define ASM_X86__ATOMIC_64_H
+#ifndef _ASM_X86_ATOMIC_64_H
+#define _ASM_X86_ATOMIC_64_H
 
 #include <asm/alternative.h>
 #include <asm/cmpxchg.h>
@@ -470,4 +470,4 @@ static inline void atomic_or_long(unsigned long *v1, unsigned long v2)
 #define smp_mb__after_atomic_inc()     barrier()
 
 #include <asm-generic/atomic.h>
-#endif /* ASM_X86__ATOMIC_64_H */
+#endif /* _ASM_X86_ATOMIC_64_H */
similarity index 70%
rename from include/asm-x86/auxvec.h
rename to arch/x86/include/asm/auxvec.h
index 12c7cac7420202c7a4a11997187b966bc4d392c4..1316b4c3542594cf42024fa98b7cee52afb8b882 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__AUXVEC_H
-#define ASM_X86__AUXVEC_H
+#ifndef _ASM_X86_AUXVEC_H
+#define _ASM_X86_AUXVEC_H
 /*
  * Architecture-neutral AT_ values in 0-17, leave some room
  * for more of them, start the x86-specific ones at 32.
@@ -9,4 +9,4 @@
 #endif
 #define AT_SYSINFO_EHDR                33
 
-#endif /* ASM_X86__AUXVEC_H */
+#endif /* _ASM_X86_AUXVEC_H */
similarity index 88%
rename from include/asm-x86/bios_ebda.h
rename to arch/x86/include/asm/bios_ebda.h
index 79b4b88505d743eed1e0e5ad7c6e55df8dc63c3f..3c7521063d3fd3f70ea346cf855e4d02c4fdb9f0 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__BIOS_EBDA_H
-#define ASM_X86__BIOS_EBDA_H
+#ifndef _ASM_X86_BIOS_EBDA_H
+#define _ASM_X86_BIOS_EBDA_H
 
 #include <asm/io.h>
 
@@ -33,4 +33,4 @@ static inline void start_periodic_check_for_corruption(void)
 }
 #endif
 
-#endif /* ASM_X86__BIOS_EBDA_H */
+#endif /* _ASM_X86_BIOS_EBDA_H */
similarity index 99%
rename from include/asm-x86/bitops.h
rename to arch/x86/include/asm/bitops.h
index 451a74762bd4e95aa3fd1ba20c2c6230ced14c84..360010322711037f80040829acceed8de6a15f42 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__BITOPS_H
-#define ASM_X86__BITOPS_H
+#ifndef _ASM_X86_BITOPS_H
+#define _ASM_X86_BITOPS_H
 
 /*
  * Copyright 1992, Linus Torvalds.
@@ -448,4 +448,4 @@ static inline int fls(int x)
 #include <asm-generic/bitops/minix.h>
 
 #endif /* __KERNEL__ */
-#endif /* ASM_X86__BITOPS_H */
+#endif /* _ASM_X86_BITOPS_H */
similarity index 89%
rename from include/asm-x86/boot.h
rename to arch/x86/include/asm/boot.h
index 1d63bd5d59462833cd5a458956c20a2d05618d9e..dd61616cb73d1d3aab1bb7d5c2dfd8923ec6e672 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__BOOT_H
-#define ASM_X86__BOOT_H
+#ifndef _ASM_X86_BOOT_H
+#define _ASM_X86_BOOT_H
 
 /* Don't touch these, unless you really know what you're doing. */
 #define DEF_SYSSEG     0x1000
@@ -23,4 +23,4 @@
 #define BOOT_STACK_SIZE        0x1000
 #endif
 
-#endif /* ASM_X86__BOOT_H */
+#endif /* _ASM_X86_BOOT_H */
similarity index 96%
rename from include/asm-x86/bootparam.h
rename to arch/x86/include/asm/bootparam.h
index ccf027e2d97da02eabaab3d54eea8bd4fe727d87..433adaebf9b631f108399a3d27f660ff61a0369b 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__BOOTPARAM_H
-#define ASM_X86__BOOTPARAM_H
+#ifndef _ASM_X86_BOOTPARAM_H
+#define _ASM_X86_BOOTPARAM_H
 
 #include <linux/types.h>
 #include <linux/screen_info.h>
@@ -108,4 +108,4 @@ struct boot_params {
        __u8  _pad9[276];                               /* 0xeec */
 } __attribute__((packed));
 
-#endif /* ASM_X86__BOOTPARAM_H */
+#endif /* _ASM_X86_BOOTPARAM_H */
similarity index 90%
rename from include/asm-x86/bug.h
rename to arch/x86/include/asm/bug.h
index 91ad43a54c47c6f9b9cb28bfc3cb7003a7b666a1..3def2065fcea73ba085fcb31ee5063e2cfc57adb 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__BUG_H
-#define ASM_X86__BUG_H
+#ifndef _ASM_X86_BUG_H
+#define _ASM_X86_BUG_H
 
 #ifdef CONFIG_BUG
 #define HAVE_ARCH_BUG
@@ -36,4 +36,4 @@ do {                                                          \
 #endif /* !CONFIG_BUG */
 
 #include <asm-generic/bug.h>
-#endif /* ASM_X86__BUG_H */
+#endif /* _ASM_X86_BUG_H */
similarity index 71%
rename from include/asm-x86/bugs.h
rename to arch/x86/include/asm/bugs.h
index dc604985f2ad71a92be6de6a7f9d48d70816bc2d..08abf639075f92b795d014cfde240d2769a224d5 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__BUGS_H
-#define ASM_X86__BUGS_H
+#ifndef _ASM_X86_BUGS_H
+#define _ASM_X86_BUGS_H
 
 extern void check_bugs(void);
 
@@ -9,4 +9,4 @@ int ppro_with_ram_bug(void);
 static inline int ppro_with_ram_bug(void) { return 0; }
 #endif
 
-#endif /* ASM_X86__BUGS_H */
+#endif /* _ASM_X86_BUGS_H */
similarity index 94%
rename from include/asm-x86/byteorder.h
rename to arch/x86/include/asm/byteorder.h
index 722f27d68105f8e454ccaf01d1b7de4baa8dd0ce..e02ae2d89acf13936aad26502e485aa6ddae0b65 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__BYTEORDER_H
-#define ASM_X86__BYTEORDER_H
+#ifndef _ASM_X86_BYTEORDER_H
+#define _ASM_X86_BYTEORDER_H
 
 #include <asm/types.h>
 #include <linux/compiler.h>
@@ -78,4 +78,4 @@ static inline __attribute_const__ __u32 ___arch__swab32(__u32 x)
 
 #include <linux/byteorder/little_endian.h>
 
-#endif /* ASM_X86__BYTEORDER_H */
+#endif /* _ASM_X86_BYTEORDER_H */
similarity index 85%
rename from include/asm-x86/cache.h
rename to arch/x86/include/asm/cache.h
index ea3f1cc06a974e8d3255bb07e74777f390976afa..5d367caa0e36c437e17cb29f76dc285d9b6d4a49 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__CACHE_H
-#define ASM_X86__CACHE_H
+#ifndef _ASM_X86_CACHE_H
+#define _ASM_X86_CACHE_H
 
 /* L1 cache line size */
 #define L1_CACHE_SHIFT (CONFIG_X86_L1_CACHE_SHIFT)
@@ -17,4 +17,4 @@
 #endif
 #endif
 
-#endif /* ASM_X86__CACHE_H */
+#endif /* _ASM_X86_CACHE_H */
similarity index 97%
rename from include/asm-x86/cacheflush.h
rename to arch/x86/include/asm/cacheflush.h
index 68840ef1b35a01c01fa7e23e45f3b5c0415d39e8..2f8466540fb52237c71373513304ddbf5627b873 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__CACHEFLUSH_H
-#define ASM_X86__CACHEFLUSH_H
+#ifndef _ASM_X86_CACHEFLUSH_H
+#define _ASM_X86_CACHEFLUSH_H
 
 /* Keep includes the same across arches.  */
 #include <linux/mm.h>
@@ -115,4 +115,4 @@ static inline int rodata_test(void)
 }
 #endif
 
-#endif /* ASM_X86__CACHEFLUSH_H */
+#endif /* _ASM_X86_CACHEFLUSH_H */
similarity index 96%
rename from include/asm-x86/calgary.h
rename to arch/x86/include/asm/calgary.h
index 933fd272f82663c6ed0c2224df4e668a0870681c..b03bedb62aa7f43ab8bc8f75168206dfbb5dd721 100644 (file)
@@ -21,8 +21,8 @@
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
  */
 
-#ifndef ASM_X86__CALGARY_H
-#define ASM_X86__CALGARY_H
+#ifndef _ASM_X86_CALGARY_H
+#define _ASM_X86_CALGARY_H
 
 #include <linux/spinlock.h>
 #include <linux/device.h>
@@ -69,4 +69,4 @@ static inline int calgary_iommu_init(void) { return 1; }
 static inline void detect_calgary(void) { return; }
 #endif
 
-#endif /* ASM_X86__CALGARY_H */
+#endif /* _ASM_X86_CALGARY_H */
similarity index 97%
rename from include/asm-x86/checksum_32.h
rename to arch/x86/include/asm/checksum_32.h
index d041e8cda227a6b191f70052599b00383af83ea7..7c5ef8b14d925624e85fd3f2d589cbbbb98a4292 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__CHECKSUM_32_H
-#define ASM_X86__CHECKSUM_32_H
+#ifndef _ASM_X86_CHECKSUM_32_H
+#define _ASM_X86_CHECKSUM_32_H
 
 #include <linux/in6.h>
 
@@ -186,4 +186,4 @@ static inline __wsum csum_and_copy_to_user(const void *src,
        return (__force __wsum)-1; /* invalid checksum */
 }
 
-#endif /* ASM_X86__CHECKSUM_32_H */
+#endif /* _ASM_X86_CHECKSUM_32_H */
similarity index 98%
rename from include/asm-x86/checksum_64.h
rename to arch/x86/include/asm/checksum_64.h
index 110f403beb8953d60218bc5b8c940b9f92dc80bd..9bfdc41629ecb8478135754cd89659f358fcc2c0 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__CHECKSUM_64_H
-#define ASM_X86__CHECKSUM_64_H
+#ifndef _ASM_X86_CHECKSUM_64_H
+#define _ASM_X86_CHECKSUM_64_H
 
 /*
  * Checksums for x86-64
@@ -188,4 +188,4 @@ static inline unsigned add32_with_carry(unsigned a, unsigned b)
        return a;
 }
 
-#endif /* ASM_X86__CHECKSUM_64_H */
+#endif /* _ASM_X86_CHECKSUM_64_H */
similarity index 98%
rename from include/asm-x86/cmpxchg_32.h
rename to arch/x86/include/asm/cmpxchg_32.h
index 0622e45cdf7cf2b26413e506ef98a0352d6fb400..82ceb788a981e7c73a7cb06e3d0bec311e205be7 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__CMPXCHG_32_H
-#define ASM_X86__CMPXCHG_32_H
+#ifndef _ASM_X86_CMPXCHG_32_H
+#define _ASM_X86_CMPXCHG_32_H
 
 #include <linux/bitops.h> /* for LOCK_PREFIX */
 
@@ -341,4 +341,4 @@ extern unsigned long long cmpxchg_486_u64(volatile void *, u64, u64);
 
 #endif
 
-#endif /* ASM_X86__CMPXCHG_32_H */
+#endif /* _ASM_X86_CMPXCHG_32_H */
similarity index 97%
rename from include/asm-x86/cmpxchg_64.h
rename to arch/x86/include/asm/cmpxchg_64.h
index 63c1a5e61b994a781ef3ff8e9c1f858e9afac264..52de72e0de8c882c3673fcff25c315f270db977f 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__CMPXCHG_64_H
-#define ASM_X86__CMPXCHG_64_H
+#ifndef _ASM_X86_CMPXCHG_64_H
+#define _ASM_X86_CMPXCHG_64_H
 
 #include <asm/alternative.h> /* Provides LOCK_PREFIX */
 
@@ -182,4 +182,4 @@ static inline unsigned long __cmpxchg_local(volatile void *ptr,
        cmpxchg_local((ptr), (o), (n));                                 \
 })
 
-#endif /* ASM_X86__CMPXCHG_64_H */
+#endif /* _ASM_X86_CMPXCHG_64_H */
similarity index 98%
rename from include/asm-x86/compat.h
rename to arch/x86/include/asm/compat.h
index 6732b150949e8c8ef0b333673c5b92438c3a9a9e..9a9c7bdc923dee66a411bdae3f30065e9e4ee09f 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__COMPAT_H
-#define ASM_X86__COMPAT_H
+#ifndef _ASM_X86_COMPAT_H
+#define _ASM_X86_COMPAT_H
 
 /*
  * Architecture specific compatibility types
@@ -215,4 +215,4 @@ static inline int is_compat_task(void)
        return current_thread_info()->status & TS_COMPAT;
 }
 
-#endif /* ASM_X86__COMPAT_H */
+#endif /* _ASM_X86_COMPAT_H */
similarity index 80%
rename from include/asm-x86/cpu.h
rename to arch/x86/include/asm/cpu.h
index 83a115083f0d74ad3eb0f82eae64e19aea5a7cc1..bae482df6039a5122617bbc781db52fbf8ae56e2 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__CPU_H
-#define ASM_X86__CPU_H
+#ifndef _ASM_X86_CPU_H
+#define _ASM_X86_CPU_H
 
 #include <linux/device.h>
 #include <linux/cpu.h>
@@ -17,4 +17,4 @@ extern void arch_unregister_cpu(int);
 #endif
 
 DECLARE_PER_CPU(int, cpu_state);
-#endif /* ASM_X86__CPU_H */
+#endif /* _ASM_X86_CPU_H */
similarity index 99%
rename from include/asm-x86/cpufeature.h
rename to arch/x86/include/asm/cpufeature.h
index adfeae6586e175f9972012a94c823ede9527d0d1..f73e95d75b45b48b360aaadf8a4c3d26b31b5b14 100644 (file)
@@ -1,8 +1,8 @@
 /*
  * Defines x86 CPU feature bits
  */
-#ifndef ASM_X86__CPUFEATURE_H
-#define ASM_X86__CPUFEATURE_H
+#ifndef _ASM_X86_CPUFEATURE_H
+#define _ASM_X86_CPUFEATURE_H
 
 #include <asm/required-features.h>
 
@@ -268,4 +268,4 @@ extern const char * const x86_power_flags[32];
 
 #endif /* defined(__KERNEL__) && !defined(__ASSEMBLY__) */
 
-#endif /* ASM_X86__CPUFEATURE_H */
+#endif /* _ASM_X86_CPUFEATURE_H */
similarity index 87%
rename from include/asm-x86/current.h
rename to arch/x86/include/asm/current.h
index a863ead856f3d37de49d023a156f98b1d4f540c5..0930b4f8d672249145ea249cbc0d272471e822de 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__CURRENT_H
-#define ASM_X86__CURRENT_H
+#ifndef _ASM_X86_CURRENT_H
+#define _ASM_X86_CURRENT_H
 
 #ifdef CONFIG_X86_32
 #include <linux/compiler.h>
@@ -36,4 +36,4 @@ static __always_inline struct task_struct *get_current(void)
 
 #define current get_current()
 
-#endif /* ASM_X86__CURRENT_H */
+#endif /* _ASM_X86_CURRENT_H */
similarity index 96%
rename from include/asm-x86/debugreg.h
rename to arch/x86/include/asm/debugreg.h
index ecb6907c3ea4ff97ef7aacb4b9c47809ef2701c4..3ea6f37be9e2d29a69f6982bb3ddcc80554f1652 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__DEBUGREG_H
-#define ASM_X86__DEBUGREG_H
+#ifndef _ASM_X86_DEBUGREG_H
+#define _ASM_X86_DEBUGREG_H
 
 
 /* Indicate the register numbers for a number of the specific
@@ -67,4 +67,4 @@
 #define DR_LOCAL_SLOWDOWN (0x100)   /* Local slow the pipeline */
 #define DR_GLOBAL_SLOWDOWN (0x200)  /* Global slow the pipeline */
 
-#endif /* ASM_X86__DEBUGREG_H */
+#endif /* _ASM_X86_DEBUGREG_H */
similarity index 90%
rename from include/asm-x86/delay.h
rename to arch/x86/include/asm/delay.h
index 8a0da95b4fc50e290187fd3bf3eb05b161fdf955..409a649204aa7308c8936d6cc08d4479222d6885 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__DELAY_H
-#define ASM_X86__DELAY_H
+#ifndef _ASM_X86_DELAY_H
+#define _ASM_X86_DELAY_H
 
 /*
  * Copyright (C) 1993 Linus Torvalds
@@ -28,4 +28,4 @@ extern void __delay(unsigned long loops);
 
 void use_tsc_delay(void);
 
-#endif /* ASM_X86__DELAY_H */
+#endif /* _ASM_X86_DELAY_H */
similarity index 99%
rename from include/asm-x86/desc.h
rename to arch/x86/include/asm/desc.h
index f06adac7938c746f87b02939205b3d3370c100a0..e6b82b17b0721095cb79fced0888d320eb64230a 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__DESC_H
-#define ASM_X86__DESC_H
+#ifndef _ASM_X86_DESC_H
+#define _ASM_X86_DESC_H
 
 #ifndef __ASSEMBLY__
 #include <asm/desc_defs.h>
@@ -406,4 +406,4 @@ static inline void set_system_intr_gate_ist(int n, void *addr, unsigned ist)
 
 #endif /* __ASSEMBLY__ */
 
-#endif /* ASM_X86__DESC_H */
+#endif /* _ASM_X86_DESC_H */
similarity index 96%
rename from include/asm-x86/desc_defs.h
rename to arch/x86/include/asm/desc_defs.h
index b881db664b46a27927d9febc4f16e39e24227d49..a6adefa28b946f4bc8d996bd2a6c5953668fb716 100644 (file)
@@ -1,6 +1,6 @@
 /* Written 2000 by Andi Kleen */
-#ifndef ASM_X86__DESC_DEFS_H
-#define ASM_X86__DESC_DEFS_H
+#ifndef _ASM_X86_DESC_DEFS_H
+#define _ASM_X86_DESC_DEFS_H
 
 /*
  * Segment descriptor structure definitions, usable from both x86_64 and i386
@@ -92,4 +92,4 @@ struct desc_ptr {
 
 #endif /* !__ASSEMBLY__ */
 
-#endif /* ASM_X86__DESC_DEFS_H */
+#endif /* _ASM_X86_DESC_DEFS_H */
similarity index 72%
rename from include/asm-x86/device.h
rename to arch/x86/include/asm/device.h
index 1bece04c7d9d9b829d6d51abe191ce1b8abf0da9..3c034f48fdb0a12f5a3fefe1499d014b68e6f4a2 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__DEVICE_H
-#define ASM_X86__DEVICE_H
+#ifndef _ASM_X86_DEVICE_H
+#define _ASM_X86_DEVICE_H
 
 struct dev_archdata {
 #ifdef CONFIG_ACPI
@@ -13,4 +13,4 @@ struct dma_mapping_ops *dma_ops;
 #endif
 };
 
-#endif /* ASM_X86__DEVICE_H */
+#endif /* _ASM_X86_DEVICE_H */
similarity index 94%
rename from include/asm-x86/div64.h
rename to arch/x86/include/asm/div64.h
index f9530f23f1d6ac2e4577ec036748cbbbc4752a93..9a2d644c08efc0981dbc13b1700e81917fef7c63 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__DIV64_H
-#define ASM_X86__DIV64_H
+#ifndef _ASM_X86_DIV64_H
+#define _ASM_X86_DIV64_H
 
 #ifdef CONFIG_X86_32
 
@@ -57,4 +57,4 @@ static inline u64 div_u64_rem(u64 dividend, u32 divisor, u32 *remainder)
 # include <asm-generic/div64.h>
 #endif /* CONFIG_X86_32 */
 
-#endif /* ASM_X86__DIV64_H */
+#endif /* _ASM_X86_DIV64_H */
similarity index 98%
rename from include/asm-x86/dma-mapping.h
rename to arch/x86/include/asm/dma-mapping.h
index 219c33d6361cdfa640878431cd6e6523dc2a475a..4a5397bfce276dc11caa1956ac9eebeab4e0c128 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__DMA_MAPPING_H
-#define ASM_X86__DMA_MAPPING_H
+#ifndef _ASM_X86_DMA_MAPPING_H
+#define _ASM_X86_DMA_MAPPING_H
 
 /*
  * IOMMU interface. See Documentation/DMA-mapping.txt and DMA-API.txt for
@@ -65,7 +65,7 @@ static inline struct dma_mapping_ops *get_dma_ops(struct device *dev)
                return dma_ops;
        else
                return dev->archdata.dma_ops;
-#endif /* ASM_X86__DMA_MAPPING_H */
+#endif /* _ASM_X86_DMA_MAPPING_H */
 }
 
 /* Make sure we keep the same behaviour */
similarity index 99%
rename from include/asm-x86/dma.h
rename to arch/x86/include/asm/dma.h
index c9f7a4eec5557c7ce8ee02b67af6daa6dd234062..ca1098a7e58057eebe268c059a682990c6ebb7e6 100644 (file)
@@ -5,8 +5,8 @@
  * and John Boyd, Nov. 1992.
  */
 
-#ifndef ASM_X86__DMA_H
-#define ASM_X86__DMA_H
+#ifndef _ASM_X86_DMA_H
+#define _ASM_X86_DMA_H
 
 #include <linux/spinlock.h>    /* And spinlocks */
 #include <asm/io.h>            /* need byte IO */
@@ -315,4 +315,4 @@ extern int isa_dma_bridge_buggy;
 #define isa_dma_bridge_buggy   (0)
 #endif
 
-#endif /* ASM_X86__DMA_H */
+#endif /* _ASM_X86_DMA_H */
similarity index 88%
rename from include/asm-x86/dmi.h
rename to arch/x86/include/asm/dmi.h
index 1cff6fe81fa5cb9d4f20954fca9e192cd99419a9..bc68212c6bc0097f66ae21b936c0af59e4c3f705 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__DMI_H
-#define ASM_X86__DMI_H
+#ifndef _ASM_X86_DMI_H
+#define _ASM_X86_DMI_H
 
 #include <asm/io.h>
 
@@ -23,4 +23,4 @@ static inline void *dmi_alloc(unsigned len)
 #define dmi_ioremap early_ioremap
 #define dmi_iounmap early_iounmap
 
-#endif /* ASM_X86__DMI_H */
+#endif /* _ASM_X86_DMI_H */
similarity index 98%
rename from include/asm-x86/ds.h
rename to arch/x86/include/asm/ds.h
index c3c953a45b215ba24b3c4216f4ee9def2e1f7c08..72c5a190bf48076d8b99b9f42f8a6f7a16a0e009 100644 (file)
@@ -20,8 +20,8 @@
  * Markus Metzger <markus.t.metzger@intel.com>, 2007-2008
  */
 
-#ifndef ASM_X86__DS_H
-#define ASM_X86__DS_H
+#ifndef _ASM_X86_DS_H
+#define _ASM_X86_DS_H
 
 #ifdef CONFIG_X86_DS
 
@@ -235,4 +235,4 @@ extern void ds_free(struct ds_context *context);
 #define ds_init_intel(config) do {} while (0)
 
 #endif /* CONFIG_X86_DS */
-#endif /* ASM_X86__DS_H */
+#endif /* _ASM_X86_DS_H */
similarity index 95%
rename from include/asm-x86/dwarf2.h
rename to arch/x86/include/asm/dwarf2.h
index 21d1bc32ad7c37ee7fa0213b2af692d73be0157a..804b6e6be9296aa5295018018404b2c9db05f6da 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__DWARF2_H
-#define ASM_X86__DWARF2_H
+#ifndef _ASM_X86_DWARF2_H
+#define _ASM_X86_DWARF2_H
 
 #ifndef __ASSEMBLY__
 #warning "asm/dwarf2.h should be only included in pure assembly files"
@@ -58,4 +58,4 @@
 
 #endif
 
-#endif /* ASM_X86__DWARF2_H */
+#endif /* _ASM_X86_DWARF2_H */
similarity index 98%
rename from include/asm-x86/e820.h
rename to arch/x86/include/asm/e820.h
index 5abbdec06bd2ed9e616530192a8b56f2ee041b7d..3d8ceddbd40729093cf2f303248a9a96202e609d 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__E820_H
-#define ASM_X86__E820_H
+#ifndef _ASM_X86_E820_H
+#define _ASM_X86_E820_H
 #define E820MAP        0x2d0           /* our map */
 #define E820MAX        128             /* number of entries in E820MAP */
 
@@ -143,4 +143,4 @@ extern char *memory_setup(void);
 #define HIGH_MEMORY    (1024*1024)
 #endif /* __KERNEL__ */
 
-#endif /* ASM_X86__E820_H */
+#endif /* _ASM_X86_E820_H */
similarity index 82%
rename from include/asm-x86/edac.h
rename to arch/x86/include/asm/edac.h
index 9493c5b27bbdb4584bc60ff98b4fae0fd2dfc54f..e9b57ecc70c5c99f587ed4a3a44518481109bdbe 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__EDAC_H
-#define ASM_X86__EDAC_H
+#ifndef _ASM_X86_EDAC_H
+#define _ASM_X86_EDAC_H
 
 /* ECC atomic, DMA, SMP and interrupt safe scrub function */
 
@@ -15,4 +15,4 @@ static inline void atomic_scrub(void *va, u32 size)
                asm volatile("lock; addl $0, %0"::"m" (*virt_addr));
 }
 
-#endif /* ASM_X86__EDAC_H */
+#endif /* _ASM_X86_EDAC_H */
similarity index 98%
rename from include/asm-x86/efi.h
rename to arch/x86/include/asm/efi.h
index 313438e633488ae874c4476002ba7ba0378cd42a..a2e545c91c359682e4583f1e4bdabd76ed91e7ed 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__EFI_H
-#define ASM_X86__EFI_H
+#ifndef _ASM_X86_EFI_H
+#define _ASM_X86_EFI_H
 
 #ifdef CONFIG_X86_32
 
@@ -107,4 +107,4 @@ extern void efi_call_phys_epilog(void);
 #define efi_call6(_f, _a1, _a2, _a3, _a4, _a5, _a6)    (-ENOSYS)
 #endif /* CONFIG_EFI */
 
-#endif /* ASM_X86__EFI_H */
+#endif /* _ASM_X86_EFI_H */
similarity index 99%
rename from include/asm-x86/elf.h
rename to arch/x86/include/asm/elf.h
index 26bc15f01e78a3faa7d7b4b540ab57741e3d94da..40ca1bea7916cc075448446887609b43e58dc670 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__ELF_H
-#define ASM_X86__ELF_H
+#ifndef _ASM_X86_ELF_H
+#define _ASM_X86_ELF_H
 
 /*
  * ELF register definitions..
@@ -333,4 +333,4 @@ extern int syscall32_setup_pages(struct linux_binprm *, int exstack);
 extern unsigned long arch_randomize_brk(struct mm_struct *mm);
 #define arch_randomize_brk arch_randomize_brk
 
-#endif /* ASM_X86__ELF_H */
+#endif /* _ASM_X86_ELF_H */
similarity index 65%
rename from include/asm-x86/emergency-restart.h
rename to arch/x86/include/asm/emergency-restart.h
index 190d0d8b71e330e35d1b0da257ab38132f218db3..94826cf874557acedd7afe248daa588a0c6383dd 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__EMERGENCY_RESTART_H
-#define ASM_X86__EMERGENCY_RESTART_H
+#ifndef _ASM_X86_EMERGENCY_RESTART_H
+#define _ASM_X86_EMERGENCY_RESTART_H
 
 enum reboot_type {
        BOOT_TRIPLE = 't',
@@ -15,4 +15,4 @@ extern enum reboot_type reboot_type;
 
 extern void machine_emergency_restart(void);
 
-#endif /* ASM_X86__EMERGENCY_RESTART_H */
+#endif /* _ASM_X86_EMERGENCY_RESTART_H */
similarity index 85%
rename from include/asm-x86/fb.h
rename to arch/x86/include/asm/fb.h
index aca38dbd9a644981541ef3cedeaea57d373d8d2c..53018464aea653a407dc32e6be3d95ac14230306 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__FB_H
-#define ASM_X86__FB_H
+#ifndef _ASM_X86_FB_H
+#define _ASM_X86_FB_H
 
 #include <linux/fb.h>
 #include <linux/fs.h>
@@ -18,4 +18,4 @@ extern int fb_is_primary_device(struct fb_info *info);
 static inline int fb_is_primary_device(struct fb_info *info) { return 0; }
 #endif
 
-#endif /* ASM_X86__FB_H */
+#endif /* _ASM_X86_FB_H */
similarity index 95%
rename from include/asm-x86/fixmap.h
rename to arch/x86/include/asm/fixmap.h
index 78e33a1bc591ea67357cc8bee1efdeb4d75463e6..8668a94f850e51e16f209e89f17f5e4b0d2afcf5 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__FIXMAP_H
-#define ASM_X86__FIXMAP_H
+#ifndef _ASM_X86_FIXMAP_H
+#define _ASM_X86_FIXMAP_H
 
 #ifdef CONFIG_X86_32
 # include "fixmap_32.h"
@@ -65,4 +65,4 @@ static inline unsigned long virt_to_fix(const unsigned long vaddr)
        BUG_ON(vaddr >= FIXADDR_TOP || vaddr < FIXADDR_START);
        return __virt_to_fix(vaddr);
 }
-#endif /* ASM_X86__FIXMAP_H */
+#endif /* _ASM_X86_FIXMAP_H */
similarity index 97%
rename from include/asm-x86/fixmap_32.h
rename to arch/x86/include/asm/fixmap_32.h
index 8844002da0e05df5e421846603c9b8a017bdd0a6..09f29ab5c139345f99596e294443c70e6b6086a6 100644 (file)
@@ -10,8 +10,8 @@
  * Support of BIGMEM added by Gerhard Wichert, Siemens AG, July 1999
  */
 
-#ifndef ASM_X86__FIXMAP_32_H
-#define ASM_X86__FIXMAP_32_H
+#ifndef _ASM_X86_FIXMAP_32_H
+#define _ASM_X86_FIXMAP_32_H
 
 
 /* used by vmalloc.c, vsyscall.lds.S.
@@ -120,4 +120,4 @@ extern void reserve_top_address(unsigned long reserve);
 #define FIXADDR_BOOT_START     (FIXADDR_TOP - __FIXADDR_BOOT_SIZE)
 
 #endif /* !__ASSEMBLY__ */
-#endif /* ASM_X86__FIXMAP_32_H */
+#endif /* _ASM_X86_FIXMAP_32_H */
similarity index 96%
rename from include/asm-x86/fixmap_64.h
rename to arch/x86/include/asm/fixmap_64.h
index dab4751d13070491e66038af1264db9880eda7a2..00a30ab9b1a5ba466a44c165e1d553d36a77cd19 100644 (file)
@@ -8,8 +8,8 @@
  * Copyright (C) 1998 Ingo Molnar
  */
 
-#ifndef ASM_X86__FIXMAP_64_H
-#define ASM_X86__FIXMAP_64_H
+#ifndef _ASM_X86_FIXMAP_64_H
+#define _ASM_X86_FIXMAP_64_H
 
 #include <linux/kernel.h>
 #include <asm/acpi.h>
@@ -80,4 +80,4 @@ enum fixed_addresses {
 #define FIXADDR_USER_START     ((unsigned long)VSYSCALL32_VSYSCALL)
 #define FIXADDR_USER_END       (FIXADDR_USER_START + PAGE_SIZE)
 
-#endif /* ASM_X86__FIXMAP_64_H */
+#endif /* _ASM_X86_FIXMAP_64_H */
similarity index 98%
rename from include/asm-x86/floppy.h
rename to arch/x86/include/asm/floppy.h
index 7d83a3a83e3772ed54b5e0464c94aa8506421038..dbe82a5c5eacde33f9cdf3791dfe159228f151b6 100644 (file)
@@ -7,8 +7,8 @@
  *
  * Copyright (C) 1995
  */
-#ifndef ASM_X86__FLOPPY_H
-#define ASM_X86__FLOPPY_H
+#ifndef _ASM_X86_FLOPPY_H
+#define _ASM_X86_FLOPPY_H
 
 #include <linux/vmalloc.h>
 
@@ -278,4 +278,4 @@ static int FDC2 = -1;
 
 #define EXTRA_FLOPPY_PARAMS
 
-#endif /* ASM_X86__FLOPPY_H */
+#endif /* _ASM_X86_FLOPPY_H */
similarity index 84%
rename from include/asm-x86/ftrace.h
rename to arch/x86/include/asm/ftrace.h
index 1bb6f9bbe1ab99319d4df113086e46ec17e9c7e7..47f7e65e6c1d51bbd17715127e8ffc00a2c7afb8 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__FTRACE_H
-#define ASM_X86__FTRACE_H
+#ifndef _ASM_X86_FTRACE_H
+#define _ASM_X86_FTRACE_H
 
 #ifdef CONFIG_FTRACE
 #define MCOUNT_ADDR            ((long)(mcount))
@@ -21,4 +21,4 @@ static inline unsigned long ftrace_call_adjust(unsigned long addr)
 
 #endif /* CONFIG_FTRACE */
 
-#endif /* ASM_X86__FTRACE_H */
+#endif /* _ASM_X86_FTRACE_H */
similarity index 97%
rename from include/asm-x86/futex.h
rename to arch/x86/include/asm/futex.h
index 06b924ef6fa5b928dc6a6d83889ee6ce98cc157c..1f11ce44e956dc41d3e33812821aa8249455a269 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__FUTEX_H
-#define ASM_X86__FUTEX_H
+#ifndef _ASM_X86_FUTEX_H
+#define _ASM_X86_FUTEX_H
 
 #ifdef __KERNEL__
 
@@ -137,4 +137,4 @@ static inline int futex_atomic_cmpxchg_inatomic(int __user *uaddr, int oldval,
 }
 
 #endif
-#endif /* ASM_X86__FUTEX_H */
+#endif /* _ASM_X86_FUTEX_H */
similarity index 95%
rename from include/asm-x86/gart.h
rename to arch/x86/include/asm/gart.h
index 605edb39ef9e9472203644b4b168acafdf7541fd..74252264433d8fa3b628afe7f91a49365d377b8a 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__GART_H
-#define ASM_X86__GART_H
+#ifndef _ASM_X86_GART_H
+#define _ASM_X86_GART_H
 
 #include <asm/e820.h>
 
@@ -70,4 +70,4 @@ static inline int aperture_valid(u64 aper_base, u32 aper_size, u32 min_size)
        return 1;
 }
 
-#endif /* ASM_X86__GART_H */
+#endif /* _ASM_X86_GART_H */
similarity index 97%
rename from include/asm-x86/genapic_32.h
rename to arch/x86/include/asm/genapic_32.h
index 6fe4f81bfcf97ef96a0cde26f378ae143ce8092e..5cbd4fcc06fd20425ce21ead1386c47d92d0b152 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__GENAPIC_32_H
-#define ASM_X86__GENAPIC_32_H
+#ifndef _ASM_X86_GENAPIC_32_H
+#define _ASM_X86_GENAPIC_32_H
 
 #include <asm/mpspec.h>
 
@@ -123,4 +123,4 @@ enum uv_system_type {UV_NONE, UV_LEGACY_APIC, UV_X2APIC, UV_NON_UNIQUE_APIC};
 #define uv_system_init()               do {} while (0)
 
 
-#endif /* ASM_X86__GENAPIC_32_H */
+#endif /* _ASM_X86_GENAPIC_32_H */
similarity index 94%
rename from include/asm-x86/genapic_64.h
rename to arch/x86/include/asm/genapic_64.h
index ed6a4886c0827ed44406f6eb2df2a0592afe5a62..13c4e96199ea17d1e52430dac24a85f4291f50d7 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__GENAPIC_64_H
-#define ASM_X86__GENAPIC_64_H
+#ifndef _ASM_X86_GENAPIC_64_H
+#define _ASM_X86_GENAPIC_64_H
 
 /*
  * Copyright 2004 James Cleverdon, IBM.
@@ -55,4 +55,4 @@ extern int uv_wakeup_secondary(int phys_apicid, unsigned int start_rip);
 
 extern void setup_apic_routing(void);
 
-#endif /* ASM_X86__GENAPIC_64_H */
+#endif /* _ASM_X86_GENAPIC_64_H */
similarity index 98%
rename from include/asm-x86/geode.h
rename to arch/x86/include/asm/geode.h
index 3f3444be2638f7205d17dc432d723e5b58fcb3f1..ad3c2ed7548185f7c9891236e078bb98c62cb67c 100644 (file)
@@ -7,8 +7,8 @@
  * as published by the Free Software Foundation.
  */
 
-#ifndef ASM_X86__GEODE_H
-#define ASM_X86__GEODE_H
+#ifndef _ASM_X86_GEODE_H
+#define _ASM_X86_GEODE_H
 
 #include <asm/processor.h>
 #include <linux/io.h>
@@ -250,4 +250,4 @@ extern int __init mfgpt_timer_setup(void);
 static inline int mfgpt_timer_setup(void) { return 0; }
 #endif
 
-#endif /* ASM_X86__GEODE_H */
+#endif /* _ASM_X86_GEODE_H */
similarity index 92%
rename from include/asm-x86/gpio.h
rename to arch/x86/include/asm/gpio.h
index 497fb980d96245c72689ee3bd0eb630cf0c729a7..49dbfdfa50f9f3a80113c264b7c8fe0439746dc0 100644 (file)
@@ -13,8 +13,8 @@
  * (at your option) any later version.
  */
 
-#ifndef _ASM_I386_GPIO_H
-#define _ASM_I386_GPIO_H
+#ifndef _ASM_X86_GPIO_H
+#define _ASM_X86_GPIO_H
 
 #include <asm-generic/gpio.h>
 
@@ -53,4 +53,4 @@ static inline int irq_to_gpio(unsigned int irq)
 
 #endif /* CONFIG_GPIOLIB */
 
-#endif /* ASM_X86__GPIO_H */
+#endif /* _ASM_X86_GPIO_H */
similarity index 87%
rename from include/asm-x86/hardirq_32.h
rename to arch/x86/include/asm/hardirq_32.h
index 700fe230d9190dba5237d838581ec58485f793a7..5ca135e72f2b0952889c395eee74d865e7fbed26 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__HARDIRQ_32_H
-#define ASM_X86__HARDIRQ_32_H
+#ifndef _ASM_X86_HARDIRQ_32_H
+#define _ASM_X86_HARDIRQ_32_H
 
 #include <linux/threads.h>
 #include <linux/irq.h>
@@ -25,4 +25,4 @@ DECLARE_PER_CPU(irq_cpustat_t, irq_stat);
 void ack_bad_irq(unsigned int irq);
 #include <linux/irq_cpustat.h>
 
-#endif /* ASM_X86__HARDIRQ_32_H */
+#endif /* _ASM_X86_HARDIRQ_32_H */
similarity index 84%
rename from include/asm-x86/hardirq_64.h
rename to arch/x86/include/asm/hardirq_64.h
index f8bd2919a8ce88bcb98d6b7f24f51ecfda429fcd..1ba381fc51d38eca1012239b6949dedd59ad9f0d 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__HARDIRQ_64_H
-#define ASM_X86__HARDIRQ_64_H
+#ifndef _ASM_X86_HARDIRQ_64_H
+#define _ASM_X86_HARDIRQ_64_H
 
 #include <linux/threads.h>
 #include <linux/irq.h>
@@ -20,4 +20,4 @@
 
 extern void ack_bad_irq(unsigned int irq);
 
-#endif /* ASM_X86__HARDIRQ_64_H */
+#endif /* _ASM_X86_HARDIRQ_64_H */
similarity index 96%
rename from include/asm-x86/highmem.h
rename to arch/x86/include/asm/highmem.h
index bc3f6a280316d5c33f41f9f48f70606e3f096021..a3b3b7c3027ba43bf6c366a8442064afddeaf7f3 100644 (file)
@@ -15,8 +15,8 @@
  * Copyright (C) 1999 Ingo Molnar <mingo@redhat.com>
  */
 
-#ifndef ASM_X86__HIGHMEM_H
-#define ASM_X86__HIGHMEM_H
+#ifndef _ASM_X86_HIGHMEM_H
+#define _ASM_X86_HIGHMEM_H
 
 #ifdef __KERNEL__
 
@@ -79,4 +79,4 @@ extern void add_highpages_with_active_regions(int nid, unsigned long start_pfn,
 
 #endif /* __KERNEL__ */
 
-#endif /* ASM_X86__HIGHMEM_H */
+#endif /* _ASM_X86_HIGHMEM_H */
similarity index 97%
rename from include/asm-x86/hpet.h
rename to arch/x86/include/asm/hpet.h
index 58b273f6ef07a92713eb74b6c2d54eb367e34b74..1c22cb05ad6a9cdff814eaccd0d773600e4c05b5 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__HPET_H
-#define ASM_X86__HPET_H
+#ifndef _ASM_X86_HPET_H
+#define _ASM_X86_HPET_H
 
 #include <linux/msi.h>
 
@@ -111,4 +111,4 @@ static inline int is_hpet_enabled(void) { return 0; }
 #define hpet_readl(a) 0
 
 #endif
-#endif /* ASM_X86__HPET_H */
+#endif /* _ASM_X86_HPET_H */
similarity index 95%
rename from include/asm-x86/hugetlb.h
rename to arch/x86/include/asm/hugetlb.h
index 0b7ec5dc08840df634deb5151e35279500a49577..439a9acc132d10f77b469fc24b250f3acc2f51d9 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__HUGETLB_H
-#define ASM_X86__HUGETLB_H
+#ifndef _ASM_X86_HUGETLB_H
+#define _ASM_X86_HUGETLB_H
 
 #include <asm/page.h>
 
@@ -90,4 +90,4 @@ static inline void arch_release_hugepage(struct page *page)
 {
 }
 
-#endif /* ASM_X86__HUGETLB_H */
+#endif /* _ASM_X86_HUGETLB_H */
similarity index 97%
rename from include/asm-x86/hw_irq.h
rename to arch/x86/include/asm/hw_irq.h
index 749d042f055614e03f7b732743b80a8ac1ea7fd8..b97aecb0b61d004de95bd769deb7bbd2d59e0774 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__HW_IRQ_H
-#define ASM_X86__HW_IRQ_H
+#ifndef _ASM_X86_HW_IRQ_H
+#define _ASM_X86_HW_IRQ_H
 
 /*
  * (C) 1992, 1993 Linus Torvalds, (C) 1997 Ingo Molnar
@@ -128,4 +128,4 @@ static inline void __setup_vector_irq(int cpu) {}
 
 #endif /* !ASSEMBLY_ */
 
-#endif /* ASM_X86__HW_IRQ_H */
+#endif /* _ASM_X86_HW_IRQ_H */
similarity index 91%
rename from include/asm-x86/hypertransport.h
rename to arch/x86/include/asm/hypertransport.h
index cc011a3bc1c280a1b7fb44b8cce834100c675d37..334b1a885d9c41cefe7549733f6fff96d81924db 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__HYPERTRANSPORT_H
-#define ASM_X86__HYPERTRANSPORT_H
+#ifndef _ASM_X86_HYPERTRANSPORT_H
+#define _ASM_X86_HYPERTRANSPORT_H
 
 /*
  * Constants for x86 Hypertransport Interrupts.
@@ -42,4 +42,4 @@
 #define HT_IRQ_HIGH_DEST_ID(v)                                         \
        ((((v) >> 8) << HT_IRQ_HIGH_DEST_ID_SHIFT) & HT_IRQ_HIGH_DEST_ID_MASK)
 
-#endif /* ASM_X86__HYPERTRANSPORT_H */
+#endif /* _ASM_X86_HYPERTRANSPORT_H */
similarity index 99%
rename from include/asm-x86/i387.h
rename to arch/x86/include/asm/i387.h
index 9ba862a4eac0327f8e0fce443ba7857edf9a0d08..48f0004db8c981175c0a900f659f4b41d1fa4dce 100644 (file)
@@ -7,8 +7,8 @@
  * x86-64 work by Andi Kleen 2002
  */
 
-#ifndef ASM_X86__I387_H
-#define ASM_X86__I387_H
+#ifndef _ASM_X86_I387_H
+#define _ASM_X86_I387_H
 
 #include <linux/sched.h>
 #include <linux/kernel_stat.h>
@@ -397,4 +397,4 @@ static inline unsigned short get_fpu_mxcsr(struct task_struct *tsk)
        }
 }
 
-#endif /* ASM_X86__I387_H */
+#endif /* _ASM_X86_I387_H */
similarity index 77%
rename from include/asm-x86/i8253.h
rename to arch/x86/include/asm/i8253.h
index 15a5b530044e85a56361f29c38ffd7eb75d1b38e..1edbf89680fd57e577e6ccae74e5ef110d285414 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__I8253_H
-#define ASM_X86__I8253_H
+#ifndef _ASM_X86_I8253_H
+#define _ASM_X86_I8253_H
 
 /* i8253A PIT registers */
 #define PIT_MODE               0x43
@@ -15,4 +15,4 @@ extern void setup_pit_timer(void);
 #define inb_pit                inb_p
 #define outb_pit       outb_p
 
-#endif /* ASM_X86__I8253_H */
+#endif /* _ASM_X86_I8253_H */
similarity index 95%
rename from include/asm-x86/i8259.h
rename to arch/x86/include/asm/i8259.h
index 23c1b3baaecd09284a9ff06b5f0375f8d1cf2e86..58d7091eeb1fc1e8955c87246121060fbb851d31 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__I8259_H
-#define ASM_X86__I8259_H
+#ifndef _ASM_X86_I8259_H
+#define _ASM_X86_I8259_H
 
 #include <linux/delay.h>
 
@@ -60,4 +60,4 @@ extern struct irq_chip i8259A_chip;
 extern void mask_8259A(void);
 extern void unmask_8259A(void);
 
-#endif /* ASM_X86__I8259_H */
+#endif /* _ASM_X86_I8259_H */
similarity index 97%
rename from include/asm-x86/ia32.h
rename to arch/x86/include/asm/ia32.h
index f932f7ad51ddb1c11e6c121c2dd2021a60c8abf2..97989c0e534c7a8af039805dc5a04ad11ed021a5 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__IA32_H
-#define ASM_X86__IA32_H
+#ifndef _ASM_X86_IA32_H
+#define _ASM_X86_IA32_H
 
 
 #ifdef CONFIG_IA32_EMULATION
@@ -167,4 +167,4 @@ extern void ia32_pick_mmap_layout(struct mm_struct *mm);
 
 #endif /* !CONFIG_IA32_SUPPORT */
 
-#endif /* ASM_X86__IA32_H */
+#endif /* _ASM_X86_IA32_H */
similarity index 81%
rename from include/asm-x86/ia32_unistd.h
rename to arch/x86/include/asm/ia32_unistd.h
index dbd887d8a5a5846183fcd966feafbc73fedf3f2d..976f6ecd2ce691da49d58e433f0b76b0348622b2 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__IA32_UNISTD_H
-#define ASM_X86__IA32_UNISTD_H
+#ifndef _ASM_X86_IA32_UNISTD_H
+#define _ASM_X86_IA32_UNISTD_H
 
 /*
  * This file contains the system call numbers of the ia32 port,
@@ -15,4 +15,4 @@
 #define __NR_ia32_sigreturn    119
 #define __NR_ia32_rt_sigreturn 173
 
-#endif /* ASM_X86__IA32_UNISTD_H */
+#endif /* _ASM_X86_IA32_UNISTD_H */
similarity index 76%
rename from include/asm-x86/idle.h
rename to arch/x86/include/asm/idle.h
index 32227f0188dde8ef9d7de11f845a5d79c8b97953..44c89c3a23e9a1f9507536b4d84f0f6b3d225c61 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__IDLE_H
-#define ASM_X86__IDLE_H
+#ifndef _ASM_X86_IDLE_H
+#define _ASM_X86_IDLE_H
 
 #define IDLE_START 1
 #define IDLE_END 2
@@ -13,4 +13,4 @@ void exit_idle(void);
 
 void c1e_remove_cpu(int cpu);
 
-#endif /* ASM_X86__IDLE_H */
+#endif /* _ASM_X86_IDLE_H */
similarity index 87%
rename from include/asm-x86/intel_arch_perfmon.h
rename to arch/x86/include/asm/intel_arch_perfmon.h
index 07c03c6c9a169cdb5eeeab1d840f1a61cef2052e..fa0fd068bc2e29aeaaad694db8c0e570c43c0df5 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__INTEL_ARCH_PERFMON_H
-#define ASM_X86__INTEL_ARCH_PERFMON_H
+#ifndef _ASM_X86_INTEL_ARCH_PERFMON_H
+#define _ASM_X86_INTEL_ARCH_PERFMON_H
 
 #define MSR_ARCH_PERFMON_PERFCTR0              0xc1
 #define MSR_ARCH_PERFMON_PERFCTR1              0xc2
@@ -28,4 +28,4 @@ union cpuid10_eax {
        unsigned int full;
 };
 
-#endif /* ASM_X86__INTEL_ARCH_PERFMON_H */
+#endif /* _ASM_X86_INTEL_ARCH_PERFMON_H */
similarity index 97%
rename from include/asm-x86/io.h
rename to arch/x86/include/asm/io.h
index a233f835e0b52a49ed02077409a7e52de22aa9a0..5618a103f395c1bf16558b57115ef1c4ae976392 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__IO_H
-#define ASM_X86__IO_H
+#ifndef _ASM_X86_IO_H
+#define _ASM_X86_IO_H
 
 #define ARCH_HAS_IOREMAP_WC
 
@@ -88,4 +88,4 @@ extern void early_iounmap(void *addr, unsigned long size);
 extern void __iomem *fix_ioremap(unsigned idx, unsigned long phys);
 
 
-#endif /* ASM_X86__IO_H */
+#endif /* _ASM_X86_IO_H */
similarity index 98%
rename from include/asm-x86/io_32.h
rename to arch/x86/include/asm/io_32.h
index 4f7d878bda1819a51541b67bda6dc7f4c53ac248..d8e242e1b396a0dedeb3810127628d2adbe5b949 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__IO_32_H
-#define ASM_X86__IO_32_H
+#ifndef _ASM_X86_IO_32_H
+#define _ASM_X86_IO_32_H
 
 #include <linux/string.h>
 #include <linux/compiler.h>
@@ -281,4 +281,4 @@ BUILDIO(b, b, char)
 BUILDIO(w, w, short)
 BUILDIO(l, , int)
 
-#endif /* ASM_X86__IO_32_H */
+#endif /* _ASM_X86_IO_32_H */
similarity index 98%
rename from include/asm-x86/io_64.h
rename to arch/x86/include/asm/io_64.h
index ee6e086b7dfec848998c241a21b6b3baca9be5f4..fea325a1122f4abf66d340113a9a82787a75832f 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__IO_64_H
-#define ASM_X86__IO_64_H
+#ifndef _ASM_X86_IO_64_H
+#define _ASM_X86_IO_64_H
 
 
 /*
@@ -241,4 +241,4 @@ void memset_io(volatile void __iomem *a, int b, size_t c);
 
 #endif /* __KERNEL__ */
 
-#endif /* ASM_X86__IO_64_H */
+#endif /* _ASM_X86_IO_64_H */
similarity index 98%
rename from include/asm-x86/io_apic.h
rename to arch/x86/include/asm/io_apic.h
index d35cbd7aa5873ff182902dbcfba38e52387c0af1..6afd9933a7dd96d96822a8ecb058cc2528ed09ac 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__IO_APIC_H
-#define ASM_X86__IO_APIC_H
+#ifndef _ASM_X86_IO_APIC_H
+#define _ASM_X86_IO_APIC_H
 
 #include <linux/types.h>
 #include <asm/mpspec.h>
@@ -201,4 +201,4 @@ static inline int probe_nr_irqs(void)
 }
 #endif
 
-#endif /* ASM_X86__IO_APIC_H */
+#endif /* _ASM_X86_IO_APIC_H */
similarity index 97%
rename from include/asm-x86/ioctls.h
rename to arch/x86/include/asm/ioctls.h
index 06752a649044d2029c4c555f006635ff41d6b9f5..0d5b23b7b06e63a770cc022eccbd319baaf7d21e 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__IOCTLS_H
-#define ASM_X86__IOCTLS_H
+#ifndef _ASM_X86_IOCTLS_H
+#define _ASM_X86_IOCTLS_H
 
 #include <asm/ioctl.h>
 
@@ -91,4 +91,4 @@
 
 #define TIOCSER_TEMT    0x01   /* Transmitter physically empty */
 
-#endif /* ASM_X86__IOCTLS_H */
+#endif /* _ASM_X86_IOCTLS_H */
similarity index 93%
rename from include/asm-x86/iommu.h
rename to arch/x86/include/asm/iommu.h
index 2daaffcda52f86df2c04d6359674dfb8511723fc..98e28ea8cd167afb5c1bf8bd3a04f320365e2edf 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__IOMMU_H
-#define ASM_X86__IOMMU_H
+#ifndef _ASM_X86_IOMMU_H
+#define _ASM_X86_IOMMU_H
 
 extern void pci_iommu_shutdown(void);
 extern void no_iommu_init(void);
@@ -47,4 +47,4 @@ static inline void gart_iommu_hole_init(void)
 }
 #endif
 
-#endif /* ASM_X86__IOMMU_H */
+#endif /* _ASM_X86_IOMMU_H */
similarity index 86%
rename from include/asm-x86/ipcbuf.h
rename to arch/x86/include/asm/ipcbuf.h
index 910304fbdc8f289e7f92e37a4bd2089b540f585f..ee678fd51594e5100d42e244433f3e8dc1c70690 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__IPCBUF_H
-#define ASM_X86__IPCBUF_H
+#ifndef _ASM_X86_IPCBUF_H
+#define _ASM_X86_IPCBUF_H
 
 /*
  * The ipc64_perm structure for x86 architecture.
@@ -25,4 +25,4 @@ struct ipc64_perm {
        unsigned long           __unused2;
 };
 
-#endif /* ASM_X86__IPCBUF_H */
+#endif /* _ASM_X86_IPCBUF_H */
similarity index 97%
rename from include/asm-x86/ipi.h
rename to arch/x86/include/asm/ipi.h
index 30a692cfaff8f1a67c827f5bd58ed73b24fad9d7..f89dffb28aa93d3427c812ec059a538ac281aaef 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__IPI_H
-#define ASM_X86__IPI_H
+#ifndef _ASM_X86_IPI_H
+#define _ASM_X86_IPI_H
 
 /*
  * Copyright 2004 James Cleverdon, IBM.
@@ -135,4 +135,4 @@ static inline void send_IPI_mask_sequence(cpumask_t mask, int vector)
        local_irq_restore(flags);
 }
 
-#endif /* ASM_X86__IPI_H */
+#endif /* _ASM_X86_IPI_H */
similarity index 93%
rename from include/asm-x86/irq.h
rename to arch/x86/include/asm/irq.h
index 1e5f2909c1db8c7db9330412444cafb07c0d1149..bae0eda954864aa62e90b6ec438b82c8785129dc 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__IRQ_H
-#define ASM_X86__IRQ_H
+#ifndef _ASM_X86_IRQ_H
+#define _ASM_X86_IRQ_H
 /*
  *     (C) 1992, 1993 Linus Torvalds, (C) 1997 Ingo Molnar
  *
@@ -47,4 +47,4 @@ extern void native_init_IRQ(void);
 /* Interrupt vector management */
 extern DECLARE_BITMAP(used_vectors, NR_VECTORS);
 
-#endif /* ASM_X86__IRQ_H */
+#endif /* _ASM_X86_IRQ_H */
similarity index 84%
rename from include/asm-x86/irq_regs_32.h
rename to arch/x86/include/asm/irq_regs_32.h
index 316a3b2588715cd0cec869c51eaa4f6774972c64..af2f02d27fc7a51a8e0a5c8d4470b0f9bd90330e 100644 (file)
@@ -4,8 +4,8 @@
  *
  * Jeremy Fitzhardinge <jeremy@goop.org>
  */
-#ifndef ASM_X86__IRQ_REGS_32_H
-#define ASM_X86__IRQ_REGS_32_H
+#ifndef _ASM_X86_IRQ_REGS_32_H
+#define _ASM_X86_IRQ_REGS_32_H
 
 #include <asm/percpu.h>
 
@@ -26,4 +26,4 @@ static inline struct pt_regs *set_irq_regs(struct pt_regs *new_regs)
        return old_regs;
 }
 
-#endif /* ASM_X86__IRQ_REGS_32_H */
+#endif /* _ASM_X86_IRQ_REGS_32_H */
diff --git a/arch/x86/include/asm/irq_remapping.h b/arch/x86/include/asm/irq_remapping.h
new file mode 100644 (file)
index 0000000..20e1fd5
--- /dev/null
@@ -0,0 +1,8 @@
+#ifndef _ASM_X86_IRQ_REMAPPING_H
+#define _ASM_X86_IRQ_REMAPPING_H
+
+extern int x2apic;
+
+#define IRTE_DEST(dest) ((x2apic) ? dest : dest << 8)
+
+#endif /* _ASM_X86_IRQ_REMAPPING_H */
similarity index 97%
rename from include/asm-x86/irq_vectors.h
rename to arch/x86/include/asm/irq_vectors.h
index a8d065d85f5770de38b0290e3bd2866ceb105583..d843ed0e9b2ee49b2cc6bd8843cefe545bd0f0ce 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__IRQ_VECTORS_H
-#define ASM_X86__IRQ_VECTORS_H
+#ifndef _ASM_X86_IRQ_VECTORS_H
+#define _ASM_X86_IRQ_VECTORS_H
 
 #include <linux/threads.h>
 
 #define VIC_CPU_BOOT_ERRATA_CPI                (VIC_CPI_LEVEL0 + 8)
 
 
-#endif /* ASM_X86__IRQ_VECTORS_H */
+#endif /* _ASM_X86_IRQ_VECTORS_H */
similarity index 91%
rename from include/asm-x86/ist.h
rename to arch/x86/include/asm/ist.h
index 35a2fe9bc9212f799d3f3c2797af33d65b11eacd..7e5dff1de0e9fc8a98cab9810a69f4549dec3c17 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__IST_H
-#define ASM_X86__IST_H
+#ifndef _ASM_X86_IST_H
+#define _ASM_X86_IST_H
 
 /*
  * Include file for the interface to IST BIOS
@@ -31,4 +31,4 @@ struct ist_info {
 extern struct ist_info ist_info;
 
 #endif /* __KERNEL__ */
-#endif /* ASM_X86__IST_H */
+#endif /* _ASM_X86_IST_H */
similarity index 81%
rename from include/asm-x86/k8.h
rename to arch/x86/include/asm/k8.h
index 2bbaf4370a553b7aa6cff16b61c9f1f39e8b1009..54c8cc53b24dd732829da23805c96f64b92fa168 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__K8_H
-#define ASM_X86__K8_H
+#ifndef _ASM_X86_K8_H
+#define _ASM_X86_K8_H
 
 #include <linux/pci.h>
 
@@ -12,4 +12,4 @@ extern int cache_k8_northbridges(void);
 extern void k8_flush_garts(void);
 extern int k8_scan_nodes(unsigned long start, unsigned long end);
 
-#endif /* ASM_X86__K8_H */
+#endif /* _ASM_X86_K8_H */
similarity index 90%
rename from include/asm-x86/kdebug.h
rename to arch/x86/include/asm/kdebug.h
index fbbab66ee9dfb9c8385e2ff40f92e245b887f924..fa7c0b9747615ce6bd75c919b7ec884de076123c 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__KDEBUG_H
-#define ASM_X86__KDEBUG_H
+#ifndef _ASM_X86_KDEBUG_H
+#define _ASM_X86_KDEBUG_H
 
 #include <linux/notifier.h>
 
@@ -34,4 +34,4 @@ extern void show_regs(struct pt_regs *regs);
 extern unsigned long oops_begin(void);
 extern void oops_end(unsigned long, struct pt_regs *, int signr);
 
-#endif /* ASM_X86__KDEBUG_H */
+#endif /* _ASM_X86_KDEBUG_H */
similarity index 98%
rename from include/asm-x86/kexec.h
rename to arch/x86/include/asm/kexec.h
index ea09600d6129543392b09936962a873e4e2ac622..a1f22771a15a2d07a88d9e071b17ebb6860631ef 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__KEXEC_H
-#define ASM_X86__KEXEC_H
+#ifndef _ASM_X86_KEXEC_H
+#define _ASM_X86_KEXEC_H
 
 #ifdef CONFIG_X86_32
 # define PA_CONTROL_PAGE       0
@@ -172,4 +172,4 @@ relocate_kernel(unsigned long indirection_page,
 
 #endif /* __ASSEMBLY__ */
 
-#endif /* ASM_X86__KEXEC_H */
+#endif /* _ASM_X86_KEXEC_H */
similarity index 95%
rename from include/asm-x86/kgdb.h
rename to arch/x86/include/asm/kgdb.h
index d283863354de7279ce915bb0905680991b1ec250..e6c6c808489fc1bb5d9d6bf9920484749fb041db 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__KGDB_H
-#define ASM_X86__KGDB_H
+#ifndef _ASM_X86_KGDB_H
+#define _ASM_X86_KGDB_H
 
 /*
  * Copyright (C) 2001-2004 Amit S. Kale
@@ -76,4 +76,4 @@ static inline void arch_kgdb_breakpoint(void)
 #define BREAK_INSTR_SIZE       1
 #define CACHE_FLUSH_IS_SAFE    1
 
-#endif /* ASM_X86__KGDB_H */
+#endif /* _ASM_X86_KGDB_H */
similarity index 81%
rename from include/asm-x86/kmap_types.h
rename to arch/x86/include/asm/kmap_types.h
index 89f44493e6432ad192fa65faeac1b46c93ce6eb6..5759c165a5cf5516adc32d6cc6d841451cf55aaa 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__KMAP_TYPES_H
-#define ASM_X86__KMAP_TYPES_H
+#ifndef _ASM_X86_KMAP_TYPES_H
+#define _ASM_X86_KMAP_TYPES_H
 
 #if defined(CONFIG_X86_32) && defined(CONFIG_DEBUG_HIGHMEM)
 # define D(n) __KM_FENCE_##n ,
@@ -26,4 +26,4 @@ D(13) KM_TYPE_NR
 
 #undef D
 
-#endif /* ASM_X86__KMAP_TYPES_H */
+#endif /* _ASM_X86_KMAP_TYPES_H */
similarity index 96%
rename from include/asm-x86/kprobes.h
rename to arch/x86/include/asm/kprobes.h
index 8a0748d01036711c509e99d2d5121fbd81100380..4fe681de1e76c164eedb543bad7333aa57de4b6d 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__KPROBES_H
-#define ASM_X86__KPROBES_H
+#ifndef _ASM_X86_KPROBES_H
+#define _ASM_X86_KPROBES_H
 /*
  *  Kernel Probes (KProbes)
  *
@@ -85,4 +85,4 @@ struct kprobe_ctlblk {
 extern int kprobe_fault_handler(struct pt_regs *regs, int trapnr);
 extern int kprobe_exceptions_notify(struct notifier_block *self,
                                    unsigned long val, void *data);
-#endif /* ASM_X86__KPROBES_H */
+#endif /* _ASM_X86_KPROBES_H */
similarity index 98%
rename from include/asm-x86/kvm.h
rename to arch/x86/include/asm/kvm.h
index ba0dd791fadf2d20560b5f16b3c6c0ab72e39789..b95162af0bf63eba3ec0c0df979bdb861dc0b942 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__KVM_H
-#define ASM_X86__KVM_H
+#ifndef _ASM_X86_KVM_H
+#define _ASM_X86_KVM_H
 
 /*
  * KVM x86 specific structures and definitions
@@ -208,4 +208,4 @@ struct kvm_pit_channel_state {
 struct kvm_pit_state {
        struct kvm_pit_channel_state channels[3];
 };
-#endif /* ASM_X86__KVM_H */
+#endif /* _ASM_X86_KVM_H */
similarity index 99%
rename from include/asm-x86/kvm_host.h
rename to arch/x86/include/asm/kvm_host.h
index 411fb8cfb24e6b4d856dc234b5fe37309fb3a3cb..65679d006337a6d5951df565ac2ef50405a9c341 100644 (file)
@@ -8,8 +8,8 @@
  *
  */
 
-#ifndef ASM_X86__KVM_HOST_H
-#define ASM_X86__KVM_HOST_H
+#ifndef _ASM_X86_KVM_HOST_H
+#define _ASM_X86_KVM_HOST_H
 
 #include <linux/types.h>
 #include <linux/mm.h>
@@ -749,4 +749,4 @@ asmlinkage void kvm_handle_fault_on_reboot(void);
 int kvm_unmap_hva(struct kvm *kvm, unsigned long hva);
 int kvm_age_hva(struct kvm *kvm, unsigned long hva);
 
-#endif /* ASM_X86__KVM_HOST_H */
+#endif /* _ASM_X86_KVM_HOST_H */
similarity index 97%
rename from include/asm-x86/kvm_para.h
rename to arch/x86/include/asm/kvm_para.h
index 30054fded4fbbe325271e9ca2db0424eb3ebbdde..b8a3305ae093772f23a2dba14cdb4a446ae5a721 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__KVM_PARA_H
-#define ASM_X86__KVM_PARA_H
+#ifndef _ASM_X86_KVM_PARA_H
+#define _ASM_X86_KVM_PARA_H
 
 /* This CPUID returns the signature 'KVMKVMKVM' in ebx, ecx, and edx.  It
  * should be used to determine that a VM is running under KVM.
@@ -144,4 +144,4 @@ static inline unsigned int kvm_arch_para_features(void)
 
 #endif
 
-#endif /* ASM_X86__KVM_PARA_H */
+#endif /* _ASM_X86_KVM_PARA_H */
similarity index 98%
rename from include/asm-x86/kvm_x86_emulate.h
rename to arch/x86/include/asm/kvm_x86_emulate.h
index e2d9b030c1ac9460297c34c08a1e796b13afa85c..25179a29f208cdac80946c406635a2b8518e4dcd 100644 (file)
@@ -8,8 +8,8 @@
  * From: xen-unstable 10676:af9809f51f81a3c43f276f00c81a52ef558afda4
  */
 
-#ifndef ASM_X86__KVM_X86_EMULATE_H
-#define ASM_X86__KVM_X86_EMULATE_H
+#ifndef _ASM_X86_KVM_X86_EMULATE_H
+#define _ASM_X86_KVM_X86_EMULATE_H
 
 struct x86_emulate_ctxt;
 
@@ -181,4 +181,4 @@ int x86_decode_insn(struct x86_emulate_ctxt *ctxt,
 int x86_emulate_insn(struct x86_emulate_ctxt *ctxt,
                     struct x86_emulate_ops *ops);
 
-#endif /* ASM_X86__KVM_X86_EMULATE_H */
+#endif /* _ASM_X86_KVM_X86_EMULATE_H */
similarity index 92%
rename from include/asm-x86/ldt.h
rename to arch/x86/include/asm/ldt.h
index a5228504d867e68045b52f6a514b8f2130efacec..46727eb37bfe20915242badc965a2b4985bd28b4 100644 (file)
@@ -3,8 +3,8 @@
  *
  * Definitions of structures used with the modify_ldt system call.
  */
-#ifndef ASM_X86__LDT_H
-#define ASM_X86__LDT_H
+#ifndef _ASM_X86_LDT_H
+#define _ASM_X86_LDT_H
 
 /* Maximum number of LDT entries supported. */
 #define LDT_ENTRIES    8192
@@ -37,4 +37,4 @@ struct user_desc {
 #define MODIFY_LDT_CONTENTS_CODE       2
 
 #endif /* !__ASSEMBLY__ */
-#endif /* ASM_X86__LDT_H */
+#endif /* _ASM_X86_LDT_H */
similarity index 96%
rename from include/asm-x86/lguest.h
rename to arch/x86/include/asm/lguest.h
index 7505e947ed2719a32a91c53a52598905a63818e4..d28a507cef3957eeccf5154d1e9b6b29103e21cc 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__LGUEST_H
-#define ASM_X86__LGUEST_H
+#ifndef _ASM_X86_LGUEST_H
+#define _ASM_X86_LGUEST_H
 
 #define GDT_ENTRY_LGUEST_CS    10
 #define GDT_ENTRY_LGUEST_DS    11
@@ -91,4 +91,4 @@ static inline void lguest_set_ts(void)
 
 #endif /* __ASSEMBLY__ */
 
-#endif /* ASM_X86__LGUEST_H */
+#endif /* _ASM_X86_LGUEST_H */
similarity index 95%
rename from include/asm-x86/lguest_hcall.h
rename to arch/x86/include/asm/lguest_hcall.h
index 8f034ba4b53ebf1b3e6df32be9e5252ccf433f76..43894428c3c2a7d871bd5d49bcc0b2e136405e13 100644 (file)
@@ -1,6 +1,6 @@
 /* Architecture specific portion of the lguest hypercalls */
-#ifndef ASM_X86__LGUEST_HCALL_H
-#define ASM_X86__LGUEST_HCALL_H
+#ifndef _ASM_X86_LGUEST_HCALL_H
+#define _ASM_X86_LGUEST_HCALL_H
 
 #define LHCALL_FLUSH_ASYNC     0
 #define LHCALL_LGUEST_INIT     1
@@ -68,4 +68,4 @@ struct hcall_args {
 };
 
 #endif /* !__ASSEMBLY__ */
-#endif /* ASM_X86__LGUEST_HCALL_H */
+#endif /* _ASM_X86_LGUEST_HCALL_H */
similarity index 95%
rename from include/asm-x86/linkage.h
rename to arch/x86/include/asm/linkage.h
index 42d8b62ee8abe72e842c55a3c337d0e947802561..f61ee8f937e4b3220e58f2851c749718fd1a4e16 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__LINKAGE_H
-#define ASM_X86__LINKAGE_H
+#ifndef _ASM_X86_LINKAGE_H
+#define _ASM_X86_LINKAGE_H
 
 #undef notrace
 #define notrace __attribute__((no_instrument_function))
@@ -57,5 +57,5 @@
 #define __ALIGN_STR ".align 16,0x90"
 #endif
 
-#endif /* ASM_X86__LINKAGE_H */
+#endif /* _ASM_X86_LINKAGE_H */
 
similarity index 98%
rename from include/asm-x86/local.h
rename to arch/x86/include/asm/local.h
index ae91994fd6c91dc607251a31d5e2df0db6d8f6af..47b9b6f1905750f5ecf8d0ec2f1f20f13470318b 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__LOCAL_H
-#define ASM_X86__LOCAL_H
+#ifndef _ASM_X86_LOCAL_H
+#define _ASM_X86_LOCAL_H
 
 #include <linux/percpu.h>
 
@@ -232,4 +232,4 @@ static inline long local_sub_return(long i, local_t *l)
 #define __cpu_local_add(i, l)  cpu_local_add((i), (l))
 #define __cpu_local_sub(i, l)  cpu_local_sub((i), (l))
 
-#endif /* ASM_X86__LOCAL_H */
+#endif /* _ASM_X86_LOCAL_H */
similarity index 93%
rename from include/asm-x86/mach-default/apm.h
rename to arch/x86/include/asm/mach-default/apm.h
index 2aa61b54fbd576f7c353eb4738904694e0844633..20370c6db74bb6dd09bbb78d4ded0b7adfd27d3e 100644 (file)
@@ -3,8 +3,8 @@
  *  Split out from apm.c by Osamu Tomita <tomita@cinet.co.jp>
  */
 
-#ifndef ASM_X86__MACH_DEFAULT__APM_H
-#define ASM_X86__MACH_DEFAULT__APM_H
+#ifndef _ASM_X86_MACH_DEFAULT_APM_H
+#define _ASM_X86_MACH_DEFAULT_APM_H
 
 #ifdef APM_ZERO_SEGS
 #      define APM_DO_ZERO_SEGS \
@@ -70,4 +70,4 @@ static inline u8 apm_bios_call_simple_asm(u32 func, u32 ebx_in,
        return error;
 }
 
-#endif /* ASM_X86__MACH_DEFAULT__APM_H */
+#endif /* _ASM_X86_MACH_DEFAULT_APM_H */
similarity index 96%
rename from include/asm-x86/mach-default/mach_apic.h
rename to arch/x86/include/asm/mach-default/mach_apic.h
index 3c66f2cdaec17e6c7921a0e2094eda3100658a33..ff3a6c236c00c940d3cbc94d0895399fd25828f8 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__MACH_DEFAULT__MACH_APIC_H
-#define ASM_X86__MACH_DEFAULT__MACH_APIC_H
+#ifndef _ASM_X86_MACH_DEFAULT_MACH_APIC_H
+#define _ASM_X86_MACH_DEFAULT_MACH_APIC_H
 
 #ifdef CONFIG_X86_LOCAL_APIC
 
@@ -153,4 +153,4 @@ static inline void enable_apic_mode(void)
 {
 }
 #endif /* CONFIG_X86_LOCAL_APIC */
-#endif /* ASM_X86__MACH_DEFAULT__MACH_APIC_H */
+#endif /* _ASM_X86_MACH_DEFAULT_MACH_APIC_H */
similarity index 76%
rename from include/asm-x86/mach-default/mach_apicdef.h
rename to arch/x86/include/asm/mach-default/mach_apicdef.h
index 0c2d41c41b208fd0ac1762b414a13a354847448a..53179936d6c6daa890be686a58772e43860af11e 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__MACH_DEFAULT__MACH_APICDEF_H
-#define ASM_X86__MACH_DEFAULT__MACH_APICDEF_H
+#ifndef _ASM_X86_MACH_DEFAULT_MACH_APICDEF_H
+#define _ASM_X86_MACH_DEFAULT_MACH_APICDEF_H
 
 #include <asm/apic.h>
 
@@ -21,4 +21,4 @@ static inline unsigned get_apic_id(unsigned long x)
 #define                GET_APIC_ID(x)  get_apic_id(x)
 #endif
 
-#endif /* ASM_X86__MACH_DEFAULT__MACH_APICDEF_H */
+#endif /* _ASM_X86_MACH_DEFAULT_MACH_APICDEF_H */
similarity index 91%
rename from include/asm-x86/mach-default/mach_ipi.h
rename to arch/x86/include/asm/mach-default/mach_ipi.h
index 674bc7e50c356250348c5341a6aba2a9167920a1..fabca01ebacf29147f0174d00f220e7d64f8d32a 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__MACH_DEFAULT__MACH_IPI_H
-#define ASM_X86__MACH_DEFAULT__MACH_IPI_H
+#ifndef _ASM_X86_MACH_DEFAULT_MACH_IPI_H
+#define _ASM_X86_MACH_DEFAULT_MACH_IPI_H
 
 /* Avoid include hell */
 #define NMI_VECTOR 0x02
@@ -61,4 +61,4 @@ static inline void send_IPI_all(int vector)
 }
 #endif
 
-#endif /* ASM_X86__MACH_DEFAULT__MACH_IPI_H */
+#endif /* _ASM_X86_MACH_DEFAULT_MACH_IPI_H */
similarity index 62%
rename from include/asm-x86/mach-default/mach_mpparse.h
rename to arch/x86/include/asm/mach-default/mach_mpparse.h
index 9c381f2815acb9752359d1538e662ff2966bc50f..8c1ea21238a7e63b5414484744357547a102fc06 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__MACH_DEFAULT__MACH_MPPARSE_H
-#define ASM_X86__MACH_DEFAULT__MACH_MPPARSE_H
+#ifndef _ASM_X86_MACH_DEFAULT_MACH_MPPARSE_H
+#define _ASM_X86_MACH_DEFAULT_MACH_MPPARSE_H
 
 static inline int mps_oem_check(struct mp_config_table *mpc, char *oem, 
                char *productid)
@@ -14,4 +14,4 @@ static inline int acpi_madt_oem_check(char *oem_id, char *oem_table_id)
 }
 
 
-#endif /* ASM_X86__MACH_DEFAULT__MACH_MPPARSE_H */
+#endif /* _ASM_X86_MACH_DEFAULT_MACH_MPPARSE_H */
diff --git a/arch/x86/include/asm/mach-default/mach_mpspec.h b/arch/x86/include/asm/mach-default/mach_mpspec.h
new file mode 100644 (file)
index 0000000..e85ede6
--- /dev/null
@@ -0,0 +1,12 @@
+#ifndef _ASM_X86_MACH_DEFAULT_MACH_MPSPEC_H
+#define _ASM_X86_MACH_DEFAULT_MACH_MPSPEC_H
+
+#define MAX_IRQ_SOURCES 256
+
+#if CONFIG_BASE_SMALL == 0
+#define MAX_MP_BUSSES 256
+#else
+#define MAX_MP_BUSSES 32
+#endif
+
+#endif /* _ASM_X86_MACH_DEFAULT_MACH_MPSPEC_H */
similarity index 91%
rename from include/asm-x86/mach-default/mach_timer.h
rename to arch/x86/include/asm/mach-default/mach_timer.h
index 990b15833834bf861ceef35d810d4adaa899a84d..853728519ae9b928bf113ead296d50c04388a737 100644 (file)
@@ -10,8 +10,8 @@
  * directly because of the awkward 8-bit access mechanism of the 82C54
  * device.
  */
-#ifndef ASM_X86__MACH_DEFAULT__MACH_TIMER_H
-#define ASM_X86__MACH_DEFAULT__MACH_TIMER_H
+#ifndef _ASM_X86_MACH_DEFAULT_MACH_TIMER_H
+#define _ASM_X86_MACH_DEFAULT_MACH_TIMER_H
 
 #define CALIBRATE_TIME_MSEC 30 /* 30 msecs */
 #define CALIBRATE_LATCH        \
@@ -45,4 +45,4 @@ static inline void mach_countup(unsigned long *count_p)
        *count_p = count;
 }
 
-#endif /* ASM_X86__MACH_DEFAULT__MACH_TIMER_H */
+#endif /* _ASM_X86_MACH_DEFAULT_MACH_TIMER_H */
similarity index 80%
rename from include/asm-x86/mach-default/mach_traps.h
rename to arch/x86/include/asm/mach-default/mach_traps.h
index ff8778f26b84e3a9125b4a4f383b69ab649c5b20..f7920601e4724487d33db72fae34f4240ef690ac 100644 (file)
@@ -2,8 +2,8 @@
  *  Machine specific NMI handling for generic.
  *  Split out from traps.c by Osamu Tomita <tomita@cinet.co.jp>
  */
-#ifndef ASM_X86__MACH_DEFAULT__MACH_TRAPS_H
-#define ASM_X86__MACH_DEFAULT__MACH_TRAPS_H
+#ifndef _ASM_X86_MACH_DEFAULT_MACH_TRAPS_H
+#define _ASM_X86_MACH_DEFAULT_MACH_TRAPS_H
 
 #include <asm/mc146818rtc.h>
 
@@ -30,4 +30,4 @@ static inline void reassert_nmi(void)
                unlock_cmos();
 }
 
-#endif /* ASM_X86__MACH_DEFAULT__MACH_TRAPS_H */
+#endif /* _ASM_X86_MACH_DEFAULT_MACH_TRAPS_H */
similarity index 85%
rename from include/asm-x86/mach-default/mach_wakecpu.h
rename to arch/x86/include/asm/mach-default/mach_wakecpu.h
index 361b810f5160a2e5a02e8ea66c365a9dc0abd0f1..d5c0b826a4ff2c742d887520a1585876bc5d26f1 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__MACH_DEFAULT__MACH_WAKECPU_H
-#define ASM_X86__MACH_DEFAULT__MACH_WAKECPU_H
+#ifndef _ASM_X86_MACH_DEFAULT_MACH_WAKECPU_H
+#define _ASM_X86_MACH_DEFAULT_MACH_WAKECPU_H
 
 /* 
  * This file copes with machines that wakeup secondary CPUs by the
@@ -39,4 +39,4 @@ static inline void restore_NMI_vector(unsigned short *high, unsigned short *low)
  #define inquire_remote_apic(apicid) {}
 #endif
 
-#endif /* ASM_X86__MACH_DEFAULT__MACH_WAKECPU_H */
+#endif /* _ASM_X86_MACH_DEFAULT_MACH_WAKECPU_H */
similarity index 76%
rename from include/asm-x86/mach-generic/gpio.h
rename to arch/x86/include/asm/mach-generic/gpio.h
index 6ce0f7786ef8bebfe8ef51414de7553c908a6fd7..995c45efdb33edb699eaea81c2bb350e2c7343b1 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__MACH_GENERIC__GPIO_H
-#define ASM_X86__MACH_GENERIC__GPIO_H
+#ifndef _ASM_X86_MACH_GENERIC_GPIO_H
+#define _ASM_X86_MACH_GENERIC_GPIO_H
 
 int gpio_request(unsigned gpio, const char *label);
 void gpio_free(unsigned gpio);
@@ -12,4 +12,4 @@ int irq_to_gpio(unsigned irq);
 
 #include <asm-generic/gpio.h>           /* cansleep wrappers */
 
-#endif /* ASM_X86__MACH_GENERIC__GPIO_H */
+#endif /* _ASM_X86_MACH_GENERIC_GPIO_H */
similarity index 91%
rename from include/asm-x86/mach-generic/mach_apic.h
rename to arch/x86/include/asm/mach-generic/mach_apic.h
index 5085b52da301152853d0f6bed29a8342b981b01b..5180bd7478fbc3d2cfc533f22e707a8099201e23 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__MACH_GENERIC__MACH_APIC_H
-#define ASM_X86__MACH_GENERIC__MACH_APIC_H
+#ifndef _ASM_X86_MACH_GENERIC_MACH_APIC_H
+#define _ASM_X86_MACH_GENERIC_MACH_APIC_H
 
 #include <asm/genapic.h>
 
@@ -30,4 +30,4 @@
 
 extern void generic_bigsmp_probe(void);
 
-#endif /* ASM_X86__MACH_GENERIC__MACH_APIC_H */
+#endif /* _ASM_X86_MACH_GENERIC_MACH_APIC_H */
similarity index 50%
rename from include/asm-x86/mach-generic/mach_apicdef.h
rename to arch/x86/include/asm/mach-generic/mach_apicdef.h
index 1657f38b8f27e184bb930a24eb3b992eaf548bbb..68041f3802f4a8eec4e2e045c0500de1aa09d7ea 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__MACH_GENERIC__MACH_APICDEF_H
-#define ASM_X86__MACH_GENERIC__MACH_APICDEF_H
+#ifndef _ASM_X86_MACH_GENERIC_MACH_APICDEF_H
+#define _ASM_X86_MACH_GENERIC_MACH_APICDEF_H
 
 #ifndef APIC_DEFINITION
 #include <asm/genapic.h>
@@ -8,4 +8,4 @@
 #define APIC_ID_MASK (genapic->apic_id_mask)
 #endif
 
-#endif /* ASM_X86__MACH_GENERIC__MACH_APICDEF_H */
+#endif /* _ASM_X86_MACH_GENERIC_MACH_APICDEF_H */
similarity index 57%
rename from include/asm-x86/mach-generic/mach_ipi.h
rename to arch/x86/include/asm/mach-generic/mach_ipi.h
index f67433dbd65f9f85b549ee4e34efdf68385725f3..ffd637e3c3d9e2fa190813cdab55bbacfe253257 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__MACH_GENERIC__MACH_IPI_H
-#define ASM_X86__MACH_GENERIC__MACH_IPI_H
+#ifndef _ASM_X86_MACH_GENERIC_MACH_IPI_H
+#define _ASM_X86_MACH_GENERIC_MACH_IPI_H
 
 #include <asm/genapic.h>
 
@@ -7,4 +7,4 @@
 #define send_IPI_allbutself (genapic->send_IPI_allbutself)
 #define send_IPI_all (genapic->send_IPI_all)
 
-#endif /* ASM_X86__MACH_GENERIC__MACH_IPI_H */
+#endif /* _ASM_X86_MACH_GENERIC_MACH_IPI_H */
similarity index 52%
rename from include/asm-x86/mach-generic/mach_mpparse.h
rename to arch/x86/include/asm/mach-generic/mach_mpparse.h
index 3115564e557cfd6d6b25f6ea02bb585d17121e43..048f1d468535c9f370e7da8df7781ba2d62e5058 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__MACH_GENERIC__MACH_MPPARSE_H
-#define ASM_X86__MACH_GENERIC__MACH_MPPARSE_H
+#ifndef _ASM_X86_MACH_GENERIC_MACH_MPPARSE_H
+#define _ASM_X86_MACH_GENERIC_MACH_MPPARSE_H
 
 
 extern int mps_oem_check(struct mp_config_table *mpc, char *oem,
@@ -7,4 +7,4 @@ extern int mps_oem_check(struct mp_config_table *mpc, char *oem,
 
 extern int acpi_madt_oem_check(char *oem_id, char *oem_table_id);
 
-#endif /* ASM_X86__MACH_GENERIC__MACH_MPPARSE_H */
+#endif /* _ASM_X86_MACH_GENERIC_MACH_MPPARSE_H */
similarity index 67%
rename from include/asm-x86/mach-generic/mach_mpspec.h
rename to arch/x86/include/asm/mach-generic/mach_mpspec.h
index 6061b153613e32ec75d0cf983091aa13dbea31d5..bbab5ccfd4fe44ef268125efb180c21ad0869ac3 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__MACH_GENERIC__MACH_MPSPEC_H
-#define ASM_X86__MACH_GENERIC__MACH_MPSPEC_H
+#ifndef _ASM_X86_MACH_GENERIC_MACH_MPSPEC_H
+#define _ASM_X86_MACH_GENERIC_MACH_MPSPEC_H
 
 #define MAX_IRQ_SOURCES 256
 
@@ -9,4 +9,4 @@
 
 extern void numaq_mps_oem_check(struct mp_config_table *mpc, char *oem,
                                char *productid);
-#endif /* ASM_X86__MACH_GENERIC__MACH_MPSPEC_H */
+#endif /* _ASM_X86_MACH_GENERIC_MACH_MPSPEC_H */
similarity index 91%
rename from include/asm-x86/mach-rdc321x/gpio.h
rename to arch/x86/include/asm/mach-rdc321x/gpio.h
index 94b6cdf532e207f210fffa131dfd34e2fa82e414..c210ab5788b0750d7f0c1db511dfc6273425b3b0 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__MACH_RDC321X__GPIO_H
-#define ASM_X86__MACH_RDC321X__GPIO_H
+#ifndef _ASM_X86_MACH_RDC321X_GPIO_H
+#define _ASM_X86_MACH_RDC321X_GPIO_H
 
 #include <linux/kernel.h>
 
@@ -57,4 +57,4 @@ static inline int irq_to_gpio(unsigned irq)
 /* For cansleep */
 #include <asm-generic/gpio.h>
 
-#endif /* ASM_X86__MACH_RDC321X__GPIO_H */
+#endif /* _ASM_X86_MACH_RDC321X_GPIO_H */
similarity index 86%
rename from include/asm-x86/math_emu.h
rename to arch/x86/include/asm/math_emu.h
index 5768d8e95c8c2b671ffb93383d13dd842a696208..5a65b107ad58350b4eb76bf6aaa4e639d2404b62 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__MATH_EMU_H
-#define ASM_X86__MATH_EMU_H
+#ifndef _ASM_X86_MATH_EMU_H
+#define _ASM_X86_MATH_EMU_H
 
 /* This structure matches the layout of the data saved to the stack
    following a device-not-present interrupt, part of it saved
@@ -28,4 +28,4 @@ struct info {
        long ___vm86_fs;
        long ___vm86_gs;
 };
-#endif /* ASM_X86__MATH_EMU_H */
+#endif /* _ASM_X86_MATH_EMU_H */
similarity index 96%
rename from include/asm-x86/mc146818rtc.h
rename to arch/x86/include/asm/mc146818rtc.h
index a995f33176cd026f60f21c18008811f9a5a996a4..01fdf5674e24da868a04c717a7792be302717483 100644 (file)
@@ -1,8 +1,8 @@
 /*
  * Machine dependent access functions for RTC registers.
  */
-#ifndef ASM_X86__MC146818RTC_H
-#define ASM_X86__MC146818RTC_H
+#ifndef _ASM_X86_MC146818RTC_H
+#define _ASM_X86_MC146818RTC_H
 
 #include <asm/io.h>
 #include <asm/system.h>
@@ -101,4 +101,4 @@ extern unsigned long mach_get_cmos_time(void);
 
 #define RTC_IRQ 8
 
-#endif /* ASM_X86__MC146818RTC_H */
+#endif /* _ASM_X86_MC146818RTC_H */
similarity index 94%
rename from include/asm-x86/mca.h
rename to arch/x86/include/asm/mca.h
index 60d1ed287b1301c2907e910ab4c7c0e182df87bd..eedbb6cc1efb0cf86b72f78f827b9c717e77ccbc 100644 (file)
@@ -1,8 +1,8 @@
 /* -*- mode: c; c-basic-offset: 8 -*- */
 
 /* Platform specific MCA defines */
-#ifndef ASM_X86__MCA_H
-#define ASM_X86__MCA_H
+#ifndef _ASM_X86_MCA_H
+#define _ASM_X86_MCA_H
 
 /* Maximal number of MCA slots - actually, some machines have less, but
  * they all have sufficient number of POS registers to cover 8.
@@ -40,4 +40,4 @@
  */
 #define MCA_NUMADAPTERS (MCA_MAX_SLOT_NR+3)
 
-#endif /* ASM_X86__MCA_H */
+#endif /* _ASM_X86_MCA_H */
similarity index 98%
rename from include/asm-x86/mca_dma.h
rename to arch/x86/include/asm/mca_dma.h
index 49f22be237d29c0e76e520d33b1fdb654f8a3d5d..45271aef82ddd4ef606ea223ca78e212e7d87419 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__MCA_DMA_H
-#define ASM_X86__MCA_DMA_H
+#ifndef _ASM_X86_MCA_DMA_H
+#define _ASM_X86_MCA_DMA_H
 
 #include <asm/io.h>
 #include <linux/ioport.h>
@@ -198,4 +198,4 @@ static inline void mca_set_dma_mode(unsigned int dmanr, unsigned int mode)
        outb(mode, MCA_DMA_REG_EXE);
 }
 
-#endif /* ASM_X86__MCA_DMA_H */
+#endif /* _ASM_X86_MCA_DMA_H */
similarity index 97%
rename from include/asm-x86/mce.h
rename to arch/x86/include/asm/mce.h
index 036133eaf7448e4625a713bab4b9ff3f53e98bb2..1d6e17c2f23a3be2ffffebf7f1df19c1786e9dd6 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__MCE_H
-#define ASM_X86__MCE_H
+#ifndef _ASM_X86_MCE_H
+#define _ASM_X86_MCE_H
 
 #ifdef __x86_64__
 
@@ -127,4 +127,4 @@ extern void restart_mce(void);
 
 #endif /* __KERNEL__ */
 
-#endif /* ASM_X86__MCE_H */
+#endif /* _ASM_X86_MCE_H */
similarity index 91%
rename from include/asm-x86/microcode.h
rename to arch/x86/include/asm/microcode.h
index 62c793bb70cacf0fd7abd4d1d96057b6a5d77ed6..c882664716c1d13e5678aa188fb0ccf75d50acca 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__MICROCODE_H
-#define ASM_X86__MICROCODE_H
+#ifndef _ASM_X86_MICROCODE_H
+#define _ASM_X86_MICROCODE_H
 
 struct cpu_signature {
        unsigned int sig;
@@ -44,4 +44,4 @@ static inline struct microcode_ops * __init init_amd_microcode(void)
 }
 #endif
 
-#endif /* ASM_X86__MICROCODE_H */
+#endif /* _ASM_X86_MICROCODE_H */
similarity index 90%
rename from include/asm-x86/mman.h
rename to arch/x86/include/asm/mman.h
index 4ef28e6de3837e38db2bd98a2af0116c67dd464b..90bc4108a4fdf917fc243502bd7fcf833f482a55 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__MMAN_H
-#define ASM_X86__MMAN_H
+#ifndef _ASM_X86_MMAN_H
+#define _ASM_X86_MMAN_H
 
 #include <asm-generic/mman.h>
 
@@ -17,4 +17,4 @@
 #define MCL_CURRENT    1               /* lock all current mappings */
 #define MCL_FUTURE     2               /* lock all future mappings */
 
-#endif /* ASM_X86__MMAN_H */
+#endif /* _ASM_X86_MMAN_H */
similarity index 74%
rename from include/asm-x86/mmconfig.h
rename to arch/x86/include/asm/mmconfig.h
index fb79b1cf5d07bdcd24360a776a10cdca2d213274..9b119da1d105f18c4bb0e6cad2380a7b110d04c9 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__MMCONFIG_H
-#define ASM_X86__MMCONFIG_H
+#ifndef _ASM_X86_MMCONFIG_H
+#define _ASM_X86_MMCONFIG_H
 
 #ifdef CONFIG_PCI_MMCONFIG
 extern void __cpuinit fam10h_check_enable_mmcfg(void);
@@ -9,4 +9,4 @@ static inline void fam10h_check_enable_mmcfg(void) { }
 static inline void check_enable_amd_mmconf_dmi(void) { }
 #endif
 
-#endif /* ASM_X86__MMCONFIG_H */
+#endif /* _ASM_X86_MMCONFIG_H */
similarity index 81%
rename from include/asm-x86/mmu.h
rename to arch/x86/include/asm/mmu.h
index 9d5aff14334a9214401d064c0bc54952e72da9c7..80a1dee5bea5ec67bb77adf6db286f471d8006e8 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__MMU_H
-#define ASM_X86__MMU_H
+#ifndef _ASM_X86_MMU_H
+#define _ASM_X86_MMU_H
 
 #include <linux/spinlock.h>
 #include <linux/mutex.h>
@@ -23,4 +23,4 @@ static inline void leave_mm(int cpu)
 }
 #endif
 
-#endif /* ASM_X86__MMU_H */
+#endif /* _ASM_X86_MMU_H */
similarity index 87%
rename from include/asm-x86/mmu_context.h
rename to arch/x86/include/asm/mmu_context.h
index 8ec940bfd07902b858a9c31c00292fa429132653..8aeeb3fd73db8a90369b60adb747719cdeb8f58d 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__MMU_CONTEXT_H
-#define ASM_X86__MMU_CONTEXT_H
+#ifndef _ASM_X86_MMU_CONTEXT_H
+#define _ASM_X86_MMU_CONTEXT_H
 
 #include <asm/desc.h>
 #include <asm/atomic.h>
@@ -34,4 +34,4 @@ do {                                          \
 } while (0);
 
 
-#endif /* ASM_X86__MMU_CONTEXT_H */
+#endif /* _ASM_X86_MMU_CONTEXT_H */
similarity index 92%
rename from include/asm-x86/mmu_context_32.h
rename to arch/x86/include/asm/mmu_context_32.h
index cce6f6e4afd6dbc6c4c876fe505da7e828647384..8e10015781fb2d6794aa0cfabae334956b365c88 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__MMU_CONTEXT_32_H
-#define ASM_X86__MMU_CONTEXT_32_H
+#ifndef _ASM_X86_MMU_CONTEXT_32_H
+#define _ASM_X86_MMU_CONTEXT_32_H
 
 static inline void enter_lazy_tlb(struct mm_struct *mm, struct task_struct *tsk)
 {
@@ -53,4 +53,4 @@ static inline void switch_mm(struct mm_struct *prev,
 #define deactivate_mm(tsk, mm)                 \
        asm("movl %0,%%gs": :"r" (0));
 
-#endif /* ASM_X86__MMU_CONTEXT_32_H */
+#endif /* _ASM_X86_MMU_CONTEXT_32_H */
similarity index 92%
rename from include/asm-x86/mmu_context_64.h
rename to arch/x86/include/asm/mmu_context_64.h
index 26758673c828b15068ea138a9527699ec7ae03d5..677d36e9540ada7bc84f541f1b96b3a03095f173 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__MMU_CONTEXT_64_H
-#define ASM_X86__MMU_CONTEXT_64_H
+#ifndef _ASM_X86_MMU_CONTEXT_64_H
+#define _ASM_X86_MMU_CONTEXT_64_H
 
 #include <asm/pda.h>
 
@@ -51,4 +51,4 @@ do {                                          \
        asm volatile("movl %0,%%fs"::"r"(0));   \
 } while (0)
 
-#endif /* ASM_X86__MMU_CONTEXT_64_H */
+#endif /* _ASM_X86_MMU_CONTEXT_64_H */
similarity index 75%
rename from include/asm-x86/mmx.h
rename to arch/x86/include/asm/mmx.h
index 2e7299bb3653639a00819fd72cea430c71d0b970..5cbf3135b9714cf444e51923d80ce03c6ca6910f 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__MMX_H
-#define ASM_X86__MMX_H
+#ifndef _ASM_X86_MMX_H
+#define _ASM_X86_MMX_H
 
 /*
  *     MMX 3Dnow! helper operations
@@ -11,4 +11,4 @@ extern void *_mmx_memcpy(void *to, const void *from, size_t size);
 extern void mmx_clear_page(void *page);
 extern void mmx_copy_page(void *to, void *from);
 
-#endif /* ASM_X86__MMX_H */
+#endif /* _ASM_X86_MMX_H */
similarity index 97%
rename from include/asm-x86/mmzone_32.h
rename to arch/x86/include/asm/mmzone_32.h
index 121b65d61d868ca09a4a2c81d61a2c36154fbc52..485bdf059ffbeacb5703b71b5ef3b9ad1f35ad7c 100644 (file)
@@ -3,8 +3,8 @@
  *
  */
 
-#ifndef ASM_X86__MMZONE_32_H
-#define ASM_X86__MMZONE_32_H
+#ifndef _ASM_X86_MMZONE_32_H
+#define _ASM_X86_MMZONE_32_H
 
 #include <asm/smp.h>
 
@@ -131,4 +131,4 @@ static inline int pfn_valid(int pfn)
 })
 #endif /* CONFIG_NEED_MULTIPLE_NODES */
 
-#endif /* ASM_X86__MMZONE_32_H */
+#endif /* _ASM_X86_MMZONE_32_H */
similarity index 93%
rename from include/asm-x86/mmzone_64.h
rename to arch/x86/include/asm/mmzone_64.h
index 6480f3333b2a4edebecd7d76507dbd819c3da596..a5b3817d4b9e621e2615ddd16435b83011206548 100644 (file)
@@ -1,8 +1,8 @@
 /* K8 NUMA support */
 /* Copyright 2002,2003 by Andi Kleen, SuSE Labs */
 /* 2.5 Version loosely based on the NUMAQ Code by Pat Gaughen. */
-#ifndef ASM_X86__MMZONE_64_H
-#define ASM_X86__MMZONE_64_H
+#ifndef _ASM_X86_MMZONE_64_H
+#define _ASM_X86_MMZONE_64_H
 
 
 #ifdef CONFIG_NUMA
@@ -48,4 +48,4 @@ extern int early_pfn_to_nid(unsigned long pfn);
 #endif
 
 #endif
-#endif /* ASM_X86__MMZONE_64_H */
+#endif /* _ASM_X86_MMZONE_64_H */
similarity index 96%
rename from include/asm-x86/module.h
rename to arch/x86/include/asm/module.h
index 864f2005fc1d323f27bc853608ce74eefd32698e..47d62743c4d595b6ad88a058b4303666f226ce7d 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__MODULE_H
-#define ASM_X86__MODULE_H
+#ifndef _ASM_X86_MODULE_H
+#define _ASM_X86_MODULE_H
 
 /* x86_32/64 are simple */
 struct mod_arch_specific {};
@@ -77,4 +77,4 @@ struct mod_arch_specific {};
 # define MODULE_ARCH_VERMAGIC MODULE_PROC_FAMILY MODULE_STACKSIZE
 #endif
 
-#endif /* ASM_X86__MODULE_H */
+#endif /* _ASM_X86_MODULE_H */
similarity index 97%
rename from include/asm-x86/mpspec.h
rename to arch/x86/include/asm/mpspec.h
index be2241a818f1e536eda377b4ceb94d04ae2b171c..91885c28f66b3ae909b402886682202b5280b6a1 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__MPSPEC_H
-#define ASM_X86__MPSPEC_H
+#ifndef _ASM_X86_MPSPEC_H
+#define _ASM_X86_MPSPEC_H
 
 #include <linux/init.h>
 
@@ -142,4 +142,4 @@ static inline void physid_set_mask_of_physid(int physid, physid_mask_t *map)
 
 extern physid_mask_t phys_cpu_present_map;
 
-#endif /* ASM_X86__MPSPEC_H */
+#endif /* _ASM_X86_MPSPEC_H */
similarity index 97%
rename from include/asm-x86/mpspec_def.h
rename to arch/x86/include/asm/mpspec_def.h
index 79166b04801231cf5d6526759113b071719a6226..e3ace7d1d35d83615b6961295276a9b92fc1a02a 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__MPSPEC_DEF_H
-#define ASM_X86__MPSPEC_DEF_H
+#ifndef _ASM_X86_MPSPEC_DEF_H
+#define _ASM_X86_MPSPEC_DEF_H
 
 /*
  * Structure definitions for SMP machines following the
@@ -177,4 +177,4 @@ enum mp_bustype {
        MP_BUS_PCI,
        MP_BUS_MCA,
 };
-#endif /* ASM_X86__MPSPEC_DEF_H */
+#endif /* _ASM_X86_MPSPEC_DEF_H */
similarity index 92%
rename from include/asm-x86/msgbuf.h
rename to arch/x86/include/asm/msgbuf.h
index 1b538c907a3de50b0fee5d87de36238560a9fce4..7e4e9481f51cff18dda6f96cfcadb5c9d9535eb9 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__MSGBUF_H
-#define ASM_X86__MSGBUF_H
+#ifndef _ASM_X86_MSGBUF_H
+#define _ASM_X86_MSGBUF_H
 
 /*
  * The msqid64_ds structure for i386 architecture.
@@ -36,4 +36,4 @@ struct msqid64_ds {
        unsigned long  __unused5;
 };
 
-#endif /* ASM_X86__MSGBUF_H */
+#endif /* _ASM_X86_MSGBUF_H */
similarity index 95%
rename from include/asm-x86/msidef.h
rename to arch/x86/include/asm/msidef.h
index ed91902468769a9efd074b20d529b47d046a25b6..6706b3006f13296ee02c5a4455268a967ca1c5f3 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__MSIDEF_H
-#define ASM_X86__MSIDEF_H
+#ifndef _ASM_X86_MSIDEF_H
+#define _ASM_X86_MSIDEF_H
 
 /*
  * Constants for Intel APIC based MSI messages.
@@ -52,4 +52,4 @@
 #define MSI_ADDR_IR_SHV                        (1 << 3)
 #define MSI_ADDR_IR_INDEX1(index)      ((index & 0x8000) >> 13)
 #define MSI_ADDR_IR_INDEX2(index)      ((index & 0x7fff) << 5)
-#endif /* ASM_X86__MSIDEF_H */
+#endif /* _ASM_X86_MSIDEF_H */
similarity index 99%
rename from include/asm-x86/msr-index.h
rename to arch/x86/include/asm/msr-index.h
index dabd10f0bbee25359a54d7104344813371b742ab..e38859d577a117e1cc1ae2cf75e278c595cfb369 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__MSR_INDEX_H
-#define ASM_X86__MSR_INDEX_H
+#ifndef _ASM_X86_MSR_INDEX_H
+#define _ASM_X86_MSR_INDEX_H
 
 /* CPU model specific register (MSR) numbers */
 
 #define MSR_IA32_VMX_PROCBASED_CTLS2    0x0000048b
 #define MSR_IA32_VMX_EPT_VPID_CAP       0x0000048c
 
-#endif /* ASM_X86__MSR_INDEX_H */
+#endif /* _ASM_X86_MSR_INDEX_H */
similarity index 98%
rename from include/asm-x86/msr.h
rename to arch/x86/include/asm/msr.h
index 530af1f6389e4b1f17ed1d6002cd0b617665f50b..46be2fa7ac266c513bfd3221b7f0d861e748238d 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__MSR_H
-#define ASM_X86__MSR_H
+#ifndef _ASM_X86_MSR_H
+#define _ASM_X86_MSR_H
 
 #include <asm/msr-index.h>
 
@@ -244,4 +244,4 @@ static inline int wrmsr_safe_on_cpu(unsigned int cpu, u32 msr_no, u32 l, u32 h)
 #endif /* __KERNEL__ */
 
 
-#endif /* ASM_X86__MSR_H */
+#endif /* _ASM_X86_MSR_H */
similarity index 98%
rename from include/asm-x86/mtrr.h
rename to arch/x86/include/asm/mtrr.h
index 23a7f83da953e7dee776dd7abb001a0dd5ce1374..7c1e4258b31e208ce6edd67f94ef7e202044f920 100644 (file)
@@ -20,8 +20,8 @@
     The postal address is:
       Richard Gooch, c/o ATNF, P. O. Box 76, Epping, N.S.W., 2121, Australia.
 */
-#ifndef ASM_X86__MTRR_H
-#define ASM_X86__MTRR_H
+#ifndef _ASM_X86_MTRR_H
+#define _ASM_X86_MTRR_H
 
 #include <linux/ioctl.h>
 #include <linux/errno.h>
@@ -170,4 +170,4 @@ struct mtrr_gentry32 {
 
 #endif /* __KERNEL__ */
 
-#endif /* ASM_X86__MTRR_H */
+#endif /* _ASM_X86_MTRR_H */
similarity index 97%
rename from include/asm-x86/mutex_32.h
rename to arch/x86/include/asm/mutex_32.h
index 25c16d8ba3c753995394e204258583a27eebbdf4..03f90c8a5a7c392b7f50ea0914cba04b0718fa76 100644 (file)
@@ -6,8 +6,8 @@
  *
  *  Copyright (C) 2004, 2005, 2006 Red Hat, Inc., Ingo Molnar <mingo@redhat.com>
  */
-#ifndef ASM_X86__MUTEX_32_H
-#define ASM_X86__MUTEX_32_H
+#ifndef _ASM_X86_MUTEX_32_H
+#define _ASM_X86_MUTEX_32_H
 
 #include <asm/alternative.h>
 
@@ -122,4 +122,4 @@ static inline int __mutex_fastpath_trylock(atomic_t *count,
 #endif
 }
 
-#endif /* ASM_X86__MUTEX_32_H */
+#endif /* _ASM_X86_MUTEX_32_H */
similarity index 96%
rename from include/asm-x86/mutex_64.h
rename to arch/x86/include/asm/mutex_64.h
index 918ba21ab9d9c5ec2c842e0479961694f379e2cd..68a87b0f8e29e491e4b71c3c9eb68d78efb6db3c 100644 (file)
@@ -6,8 +6,8 @@
  *
  *  Copyright (C) 2004, 2005, 2006 Red Hat, Inc., Ingo Molnar <mingo@redhat.com>
  */
-#ifndef ASM_X86__MUTEX_64_H
-#define ASM_X86__MUTEX_64_H
+#ifndef _ASM_X86_MUTEX_64_H
+#define _ASM_X86_MUTEX_64_H
 
 /**
  * __mutex_fastpath_lock - decrement and call function if negative
@@ -97,4 +97,4 @@ static inline int __mutex_fastpath_trylock(atomic_t *count,
                return 0;
 }
 
-#endif /* ASM_X86__MUTEX_64_H */
+#endif /* _ASM_X86_MUTEX_64_H */
similarity index 96%
rename from include/asm-x86/nmi.h
rename to arch/x86/include/asm/nmi.h
index a53f829a97c581c7b4a0d3cd77e4a0ea2cdf4ae3..c45a0a568dff092227b1436a48e7dab5434dc4fa 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__NMI_H
-#define ASM_X86__NMI_H
+#ifndef _ASM_X86_NMI_H
+#define _ASM_X86_NMI_H
 
 #include <linux/pm.h>
 #include <asm/irq.h>
@@ -78,4 +78,4 @@ void enable_lapic_nmi_watchdog(void);
 void stop_nmi(void);
 void restart_nmi(void);
 
-#endif /* ASM_X86__NMI_H */
+#endif /* _ASM_X86_NMI_H */
similarity index 97%
rename from include/asm-x86/nops.h
rename to arch/x86/include/asm/nops.h
index ae742721ae73e01cdfeb9ab4e1bc72310f5ec729..ad2668ee1aa7af8cc6fa62fdede3e58b08966ab1 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__NOPS_H
-#define ASM_X86__NOPS_H
+#ifndef _ASM_X86_NOPS_H
+#define _ASM_X86_NOPS_H
 
 /* Define nops for use with alternative() */
 
 
 #define ASM_NOP_MAX 8
 
-#endif /* ASM_X86__NOPS_H */
+#endif /* _ASM_X86_NOPS_H */
similarity index 62%
rename from include/asm-x86/numa_32.h
rename to arch/x86/include/asm/numa_32.h
index 44cb07855c5bcfd8ab4db962c3871316f5b9027c..e9f5db796244b200249802673bc30022b8d8cc94 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__NUMA_32_H
-#define ASM_X86__NUMA_32_H
+#ifndef _ASM_X86_NUMA_32_H
+#define _ASM_X86_NUMA_32_H
 
 extern int pxm_to_nid(int pxm);
 extern void numa_remove_cpu(int cpu);
@@ -8,4 +8,4 @@ extern void numa_remove_cpu(int cpu);
 extern void set_highmem_pages_init(void);
 #endif
 
-#endif /* ASM_X86__NUMA_32_H */
+#endif /* _ASM_X86_NUMA_32_H */
similarity index 92%
rename from include/asm-x86/numa_64.h
rename to arch/x86/include/asm/numa_64.h
index 15c990395b021b65c766b1321ea8801e4311f9f4..064ed6df4cbec292758631a4a5a36aa3b77260c0 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__NUMA_64_H
-#define ASM_X86__NUMA_64_H
+#ifndef _ASM_X86_NUMA_64_H
+#define _ASM_X86_NUMA_64_H
 
 #include <linux/nodemask.h>
 #include <asm/apicdef.h>
@@ -40,4 +40,4 @@ static inline void numa_add_cpu(int cpu, int node)    { }
 static inline void numa_remove_cpu(int cpu)            { }
 #endif
 
-#endif /* ASM_X86__NUMA_64_H */
+#endif /* _ASM_X86_NUMA_64_H */
similarity index 98%
rename from include/asm-x86/numaq.h
rename to arch/x86/include/asm/numaq.h
index 124bf7d4b70a86d483fc25409e0a6105a3acca52..1e8bd30b4c161137a68fcd242866169ce1048c62 100644 (file)
@@ -23,8 +23,8 @@
  * Send feedback to <gone@us.ibm.com>
  */
 
-#ifndef ASM_X86__NUMAQ_H
-#define ASM_X86__NUMAQ_H
+#ifndef _ASM_X86_NUMAQ_H
+#define _ASM_X86_NUMAQ_H
 
 #ifdef CONFIG_X86_NUMAQ
 
@@ -165,5 +165,5 @@ static inline int get_memcfg_numaq(void)
        return 0;
 }
 #endif /* CONFIG_X86_NUMAQ */
-#endif /* ASM_X86__NUMAQ_H */
+#endif /* _ASM_X86_NUMAQ_H */
 
similarity index 97%
rename from include/asm-x86/olpc.h
rename to arch/x86/include/asm/olpc.h
index d7328b1a05c1791dc9475a573a1574c65717ccd6..834a30295fabbb75740826a39c76e7bfbbe2fe37 100644 (file)
@@ -1,7 +1,7 @@
 /* OLPC machine specific definitions */
 
-#ifndef ASM_X86__OLPC_H
-#define ASM_X86__OLPC_H
+#ifndef _ASM_X86_OLPC_H
+#define _ASM_X86_OLPC_H
 
 #include <asm/geode.h>
 
@@ -129,4 +129,4 @@ extern int olpc_ec_mask_unset(uint8_t bits);
 #define OLPC_GPIO_LID          geode_gpio(26)
 #define OLPC_GPIO_ECSCI                geode_gpio(27)
 
-#endif /* ASM_X86__OLPC_H */
+#endif /* _ASM_X86_OLPC_H */
similarity index 98%
rename from include/asm-x86/page.h
rename to arch/x86/include/asm/page.h
index d4f1d5791fc186f29a9a60d4fe182d80f05038e4..e9873a2e86951d10c7a5576e3b908956d0e3e6f8 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__PAGE_H
-#define ASM_X86__PAGE_H
+#ifndef _ASM_X86_PAGE_H
+#define _ASM_X86_PAGE_H
 
 #include <linux/const.h>
 
@@ -206,4 +206,4 @@ extern bool __virt_addr_valid(unsigned long kaddr);
 #define __HAVE_ARCH_GATE_AREA 1
 
 #endif /* __KERNEL__ */
-#endif /* ASM_X86__PAGE_H */
+#endif /* _ASM_X86_PAGE_H */
similarity index 97%
rename from include/asm-x86/page_32.h
rename to arch/x86/include/asm/page_32.h
index bdf5dba4cfb0a85d0d8aee9c4a557b6c1d4f4a15..bcde0d7b432547be4068715919cc58e2ebfd8af9 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__PAGE_32_H
-#define ASM_X86__PAGE_32_H
+#ifndef _ASM_X86_PAGE_32_H
+#define _ASM_X86_PAGE_32_H
 
 /*
  * This handles the memory map.
@@ -133,4 +133,4 @@ static inline void copy_page(void *to, void *from)
 #endif /* CONFIG_X86_3DNOW */
 #endif /* !__ASSEMBLY__ */
 
-#endif /* ASM_X86__PAGE_32_H */
+#endif /* _ASM_X86_PAGE_32_H */
similarity index 97%
rename from include/asm-x86/page_64.h
rename to arch/x86/include/asm/page_64.h
index 49380b8c7e25fbafa26243860abe03d105b7a97a..5ebca29f44f0d77890b4395d11313b589e386b9c 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__PAGE_64_H
-#define ASM_X86__PAGE_64_H
+#ifndef _ASM_X86_PAGE_64_H
+#define _ASM_X86_PAGE_64_H
 
 #define PAGETABLE_LEVELS       4
 
@@ -102,4 +102,4 @@ extern void init_extra_mapping_wb(unsigned long phys, unsigned long size);
 #endif
 
 
-#endif /* ASM_X86__PAGE_64_H */
+#endif /* _ASM_X86_PAGE_64_H */
similarity index 82%
rename from include/asm-x86/param.h
rename to arch/x86/include/asm/param.h
index 0009cfb11a5f53bbba0c697a6695cb6bddfefa7d..6f0d0422f4ca0ffdcb07df874789dc565f3ac82f 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__PARAM_H
-#define ASM_X86__PARAM_H
+#ifndef _ASM_X86_PARAM_H
+#define _ASM_X86_PARAM_H
 
 #ifdef __KERNEL__
 # define HZ            CONFIG_HZ       /* Internal kernel timer frequency */
@@ -19,4 +19,4 @@
 
 #define MAXHOSTNAMELEN 64      /* max length of hostname */
 
-#endif /* ASM_X86__PARAM_H */
+#endif /* _ASM_X86_PARAM_H */
similarity index 99%
rename from include/asm-x86/paravirt.h
rename to arch/x86/include/asm/paravirt.h
index 8d6ae2f760d0000553d50ad9884722df23973406..ba3e2ff6aedcb1a7c6648acdc9257ad0bb7e3202 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__PARAVIRT_H
-#define ASM_X86__PARAVIRT_H
+#ifndef _ASM_X86_PARAVIRT_H
+#define _ASM_X86_PARAVIRT_H
 /* Various instructions on x86 need to be replaced for
  * para-virtualization: those hooks are defined here. */
 
@@ -1647,4 +1647,4 @@ static inline unsigned long __raw_local_irq_save(void)
 
 #endif /* __ASSEMBLY__ */
 #endif /* CONFIG_PARAVIRT */
-#endif /* ASM_X86__PARAVIRT_H */
+#endif /* _ASM_X86_PARAVIRT_H */
similarity index 70%
rename from include/asm-x86/parport.h
rename to arch/x86/include/asm/parport.h
index 2e3dda4dc3d9b9f4bc243ca5a5b82b15be18263c..3c4ffeb467e9886ad62b1a4c6bf60686fcb219a3 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__PARPORT_H
-#define ASM_X86__PARPORT_H
+#ifndef _ASM_X86_PARPORT_H
+#define _ASM_X86_PARPORT_H
 
 static int __devinit parport_pc_find_isa_ports(int autoirq, int autodma);
 static int __devinit parport_pc_find_nonpci_ports(int autoirq, int autodma)
@@ -7,4 +7,4 @@ static int __devinit parport_pc_find_nonpci_ports(int autoirq, int autodma)
        return parport_pc_find_isa_ports(autoirq, autodma);
 }
 
-#endif /* ASM_X86__PARPORT_H */
+#endif /* _ASM_X86_PARPORT_H */
similarity index 86%
rename from include/asm-x86/pat.h
rename to arch/x86/include/asm/pat.h
index 482c3e3f9879b23f086274fbd7dc453c3701ed69..b8493b3b98901c811add567762a22b73aaa85c9a 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__PAT_H
-#define ASM_X86__PAT_H
+#ifndef _ASM_X86_PAT_H
+#define _ASM_X86_PAT_H
 
 #include <linux/types.h>
 
@@ -19,4 +19,4 @@ extern int free_memtype(u64 start, u64 end);
 
 extern void pat_disable(char *reason);
 
-#endif /* ASM_X86__PAT_H */
+#endif /* _ASM_X86_PAT_H */
similarity index 88%
rename from include/asm-x86/pci-direct.h
rename to arch/x86/include/asm/pci-direct.h
index da42be07b6907bbfcf6eecabeaa65a2546cb40a1..b1e7a45d868a52bfd0c729897879ab49b5ea9bac 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__PCI_DIRECT_H
-#define ASM_X86__PCI_DIRECT_H
+#ifndef _ASM_X86_PCI_DIRECT_H
+#define _ASM_X86_PCI_DIRECT_H
 
 #include <linux/types.h>
 
@@ -18,4 +18,4 @@ extern int early_pci_allowed(void);
 extern unsigned int pci_early_dump_regs;
 extern void early_dump_pci_device(u8 bus, u8 slot, u8 func);
 extern void early_dump_pci_devices(void);
-#endif /* ASM_X86__PCI_DIRECT_H */
+#endif /* _ASM_X86_PCI_DIRECT_H */
similarity index 97%
rename from include/asm-x86/pci.h
rename to arch/x86/include/asm/pci.h
index 60258319299183fa10ba7127f8af81a4e45f4f4e..875b38edf19383f0e1176b9a73dede0f49f42c38 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__PCI_H
-#define ASM_X86__PCI_H
+#ifndef _ASM_X86_PCI_H
+#define _ASM_X86_PCI_H
 
 #include <linux/mm.h> /* for struct page */
 #include <linux/types.h>
@@ -111,4 +111,4 @@ static inline cpumask_t __pcibus_to_cpumask(struct pci_bus *bus)
 }
 #endif
 
-#endif /* ASM_X86__PCI_H */
+#endif /* _ASM_X86_PCI_H */
similarity index 91%
rename from include/asm-x86/pci_32.h
rename to arch/x86/include/asm/pci_32.h
index 3f2288207c0cd0e664cce2037d7c25e4a1bf1166..6f1213a6ef4fee56d716938c722b506dab433146 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__PCI_32_H
-#define ASM_X86__PCI_32_H
+#ifndef _ASM_X86_PCI_32_H
+#define _ASM_X86_PCI_32_H
 
 
 #ifdef __KERNEL__
@@ -31,4 +31,4 @@ struct pci_dev;
 #endif /* __KERNEL__ */
 
 
-#endif /* ASM_X86__PCI_32_H */
+#endif /* _ASM_X86_PCI_32_H */
similarity index 95%
rename from include/asm-x86/pci_64.h
rename to arch/x86/include/asm/pci_64.h
index f72e12d5770ef275aff119c8c136a70b75ed047a..5b28995d664e9a092b4054f770751b3413f50edf 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__PCI_64_H
-#define ASM_X86__PCI_64_H
+#ifndef _ASM_X86_PCI_64_H
+#define _ASM_X86_PCI_64_H
 
 #ifdef __KERNEL__
 
@@ -63,4 +63,4 @@ extern void pci_iommu_alloc(void);
 
 #endif /* __KERNEL__ */
 
-#endif /* ASM_X86__PCI_64_H */
+#endif /* _ASM_X86_PCI_64_H */
similarity index 98%
rename from include/asm-x86/pda.h
rename to arch/x86/include/asm/pda.h
index 80860afffbdbbede4092bb18a6946e5b0a2831f9..2fbfff88df37b5dec026772c61ac2b11fa61e1be 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__PDA_H
-#define ASM_X86__PDA_H
+#ifndef _ASM_X86_PDA_H
+#define _ASM_X86_PDA_H
 
 #ifndef __ASSEMBLY__
 #include <linux/stddef.h>
@@ -134,4 +134,4 @@ do {                                                                        \
 
 #define PDA_STACKOFFSET (5*8)
 
-#endif /* ASM_X86__PDA_H */
+#endif /* _ASM_X86_PDA_H */
similarity index 98%
rename from include/asm-x86/percpu.h
rename to arch/x86/include/asm/percpu.h
index e10a1d0678cfaa014ad702e1169e5d7417240f52..ece72053ba63b74cc79df41f88d5c9e49b77b69a 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__PERCPU_H
-#define ASM_X86__PERCPU_H
+#ifndef _ASM_X86_PERCPU_H
+#define _ASM_X86_PERCPU_H
 
 #ifdef CONFIG_X86_64
 #include <linux/compiler.h>
@@ -215,4 +215,4 @@ do {                                                        \
 
 #endif /* !CONFIG_SMP */
 
-#endif /* ASM_X86__PERCPU_H */
+#endif /* _ASM_X86_PERCPU_H */
similarity index 97%
rename from include/asm-x86/pgalloc.h
rename to arch/x86/include/asm/pgalloc.h
index 3cd23adedae851d13da954b3cb8574390102931a..cb7c151a8bff27aae0ec3e4cad447ff4003abbc6 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__PGALLOC_H
-#define ASM_X86__PGALLOC_H
+#ifndef _ASM_X86_PGALLOC_H
+#define _ASM_X86_PGALLOC_H
 
 #include <linux/threads.h>
 #include <linux/mm.h>          /* for struct page */
@@ -111,4 +111,4 @@ extern void __pud_free_tlb(struct mmu_gather *tlb, pud_t *pud);
 #endif /* PAGETABLE_LEVELS > 3 */
 #endif /* PAGETABLE_LEVELS > 2 */
 
-#endif /* ASM_X86__PGALLOC_H */
+#endif /* _ASM_X86_PGALLOC_H */
similarity index 67%
rename from include/asm-x86/pgtable-2level-defs.h
rename to arch/x86/include/asm/pgtable-2level-defs.h
index 7ec48f4e53472a865eee5d9fb4c1b018bd3fcd8a..d77db8990eaaa9e7b8250f50134d22979fc4a1d7 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__PGTABLE_2LEVEL_DEFS_H
-#define ASM_X86__PGTABLE_2LEVEL_DEFS_H
+#ifndef _ASM_X86_PGTABLE_2LEVEL_DEFS_H
+#define _ASM_X86_PGTABLE_2LEVEL_DEFS_H
 
 #define SHARED_KERNEL_PMD      0
 
@@ -17,4 +17,4 @@
 
 #define PTRS_PER_PTE   1024
 
-#endif /* ASM_X86__PGTABLE_2LEVEL_DEFS_H */
+#endif /* _ASM_X86_PGTABLE_2LEVEL_DEFS_H */
similarity index 94%
rename from include/asm-x86/pgtable-2level.h
rename to arch/x86/include/asm/pgtable-2level.h
index 81762081dcd88251464b4af812fe39239a14377d..b17edfd23628953139fa58778fa7ae2d66222222 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__PGTABLE_2LEVEL_H
-#define ASM_X86__PGTABLE_2LEVEL_H
+#ifndef _ASM_X86_PGTABLE_2LEVEL_H
+#define _ASM_X86_PGTABLE_2LEVEL_H
 
 #define pte_ERROR(e) \
        printk("%s:%d: bad pte %08lx.\n", __FILE__, __LINE__, (e).pte_low)
@@ -76,4 +76,4 @@ static inline pte_t native_ptep_get_and_clear(pte_t *xp)
 #define __pte_to_swp_entry(pte)                ((swp_entry_t) { (pte).pte_low })
 #define __swp_entry_to_pte(x)          ((pte_t) { .pte = (x).val })
 
-#endif /* ASM_X86__PGTABLE_2LEVEL_H */
+#endif /* _ASM_X86_PGTABLE_2LEVEL_H */
similarity index 78%
rename from include/asm-x86/pgtable-3level-defs.h
rename to arch/x86/include/asm/pgtable-3level-defs.h
index c05fe6ff37202ddd51c596b9c27e1b609f84fb3a..62561367653c31376fcbfe6e8f9f0f98087ea907 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__PGTABLE_3LEVEL_DEFS_H
-#define ASM_X86__PGTABLE_3LEVEL_DEFS_H
+#ifndef _ASM_X86_PGTABLE_3LEVEL_DEFS_H
+#define _ASM_X86_PGTABLE_3LEVEL_DEFS_H
 
 #ifdef CONFIG_PARAVIRT
 #define SHARED_KERNEL_PMD      (pv_info.shared_kernel_pmd)
@@ -25,4 +25,4 @@
  */
 #define PTRS_PER_PTE   512
 
-#endif /* ASM_X86__PGTABLE_3LEVEL_DEFS_H */
+#endif /* _ASM_X86_PGTABLE_3LEVEL_DEFS_H */
similarity index 97%
rename from include/asm-x86/pgtable-3level.h
rename to arch/x86/include/asm/pgtable-3level.h
index 75f4276b5ddb9e2a7fba9b3403ce9765366b0eec..fb16cec702e40ad786f175eede096ffaf8e31116 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__PGTABLE_3LEVEL_H
-#define ASM_X86__PGTABLE_3LEVEL_H
+#ifndef _ASM_X86_PGTABLE_3LEVEL_H
+#define _ASM_X86_PGTABLE_3LEVEL_H
 
 /*
  * Intel Physical Address Extension (PAE) Mode - three-level page
@@ -172,4 +172,4 @@ static inline int pte_none(pte_t pte)
 #define __pte_to_swp_entry(pte)                ((swp_entry_t){ (pte).pte_high })
 #define __swp_entry_to_pte(x)          ((pte_t){ { .pte_high = (x).val } })
 
-#endif /* ASM_X86__PGTABLE_3LEVEL_H */
+#endif /* _ASM_X86_PGTABLE_3LEVEL_H */
similarity index 99%
rename from include/asm-x86/pgtable.h
rename to arch/x86/include/asm/pgtable.h
index 88a53b1a17f03f486e9a22a138b30b2e422e6544..fb7d1e9985b5a4ea4940dab4ee63c9777ec174ed 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__PGTABLE_H
-#define ASM_X86__PGTABLE_H
+#ifndef _ASM_X86_PGTABLE_H
+#define _ASM_X86_PGTABLE_H
 
 #define FIRST_USER_ADDRESS     0
 
@@ -558,4 +558,4 @@ static inline void clone_pgd_range(pgd_t *dst, pgd_t *src, int count)
 #include <asm-generic/pgtable.h>
 #endif /* __ASSEMBLY__ */
 
-#endif /* ASM_X86__PGTABLE_H */
+#endif /* _ASM_X86_PGTABLE_H */
similarity index 98%
rename from include/asm-x86/pgtable_32.h
rename to arch/x86/include/asm/pgtable_32.h
index 8de702dc7d620bc625b5ff1fe8eee2d5e0f804a9..f9d5889b336be5eb5d9f575d22ac512be7d63f7e 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__PGTABLE_32_H
-#define ASM_X86__PGTABLE_32_H
+#ifndef _ASM_X86_PGTABLE_32_H
+#define _ASM_X86_PGTABLE_32_H
 
 
 /*
@@ -188,4 +188,4 @@ do {                                                \
 #define io_remap_pfn_range(vma, vaddr, pfn, size, prot)        \
        remap_pfn_range(vma, vaddr, pfn, size, prot)
 
-#endif /* ASM_X86__PGTABLE_32_H */
+#endif /* _ASM_X86_PGTABLE_32_H */
similarity index 98%
rename from include/asm-x86/pgtable_64.h
rename to arch/x86/include/asm/pgtable_64.h
index fde9770e53d14193a7279c8e427dc50e3f7fc87c..545a0e042bb2d44268d7a240e97b2c14309568b9 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__PGTABLE_64_H
-#define ASM_X86__PGTABLE_64_H
+#ifndef _ASM_X86_PGTABLE_64_H
+#define _ASM_X86_PGTABLE_64_H
 
 #include <linux/const.h>
 #ifndef __ASSEMBLY__
@@ -282,4 +282,4 @@ extern void cleanup_highmap(void);
 #define __HAVE_ARCH_PTE_SAME
 #endif /* !__ASSEMBLY__ */
 
-#endif /* ASM_X86__PGTABLE_64_H */
+#endif /* _ASM_X86_PGTABLE_64_H */
similarity index 95%
rename from include/asm-x86/posix_types_32.h
rename to arch/x86/include/asm/posix_types_32.h
index 70cf2bb059393532401e0eb4bc49528b869c5f84..f7d9adf82e5396cce337b7e62d0821371361bdc9 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__POSIX_TYPES_32_H
-#define ASM_X86__POSIX_TYPES_32_H
+#ifndef _ASM_X86_POSIX_TYPES_32_H
+#define _ASM_X86_POSIX_TYPES_32_H
 
 /*
  * This file is generally used by user-level software, so you need to
@@ -82,4 +82,4 @@ do {                                                          \
 
 #endif /* defined(__KERNEL__) */
 
-#endif /* ASM_X86__POSIX_TYPES_32_H */
+#endif /* _ASM_X86_POSIX_TYPES_32_H */
similarity index 96%
rename from include/asm-x86/posix_types_64.h
rename to arch/x86/include/asm/posix_types_64.h
index 388b4e7f4a440425173adfd5f6da9bd25ead676c..eb8d2d92b63e6e7a5cbad9b472d0f607a4c22a69 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__POSIX_TYPES_64_H
-#define ASM_X86__POSIX_TYPES_64_H
+#ifndef _ASM_X86_POSIX_TYPES_64_H
+#define _ASM_X86_POSIX_TYPES_64_H
 
 /*
  * This file is generally used by user-level software, so you need to
@@ -116,4 +116,4 @@ static inline void __FD_ZERO(__kernel_fd_set *p)
 
 #endif /* defined(__KERNEL__) */
 
-#endif /* ASM_X86__POSIX_TYPES_64_H */
+#endif /* _ASM_X86_POSIX_TYPES_64_H */
similarity index 58%
rename from include/asm-x86/prctl.h
rename to arch/x86/include/asm/prctl.h
index e7ae34eb4103357ac3a8b73352df7fce8caed93d..fe681147a4f78fcd5cc0235cff57616af81e3f38 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__PRCTL_H
-#define ASM_X86__PRCTL_H
+#ifndef _ASM_X86_PRCTL_H
+#define _ASM_X86_PRCTL_H
 
 #define ARCH_SET_GS 0x1001
 #define ARCH_SET_FS 0x1002
@@ -7,4 +7,4 @@
 #define ARCH_GET_GS 0x1004
 
 
-#endif /* ASM_X86__PRCTL_H */
+#endif /* _ASM_X86_PRCTL_H */
similarity index 96%
rename from include/asm-x86/processor-flags.h
rename to arch/x86/include/asm/processor-flags.h
index dc5f0712f9fa450430718880447c23f6af4c9965..7a3e836eb2a984b751443666d8848185d7bb51f5 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__PROCESSOR_FLAGS_H
-#define ASM_X86__PROCESSOR_FLAGS_H
+#ifndef _ASM_X86_PROCESSOR_FLAGS_H
+#define _ASM_X86_PROCESSOR_FLAGS_H
 /* Various flags defined: can be included from assembler. */
 
 /*
@@ -97,4 +97,4 @@
 #endif
 #endif
 
-#endif /* ASM_X86__PROCESSOR_FLAGS_H */
+#endif /* _ASM_X86_PROCESSOR_FLAGS_H */
similarity index 99%
rename from include/asm-x86/processor.h
rename to arch/x86/include/asm/processor.h
index ee7cbb30773ae05709518f0cc63307162407c90c..5ca01e3832699b0378c36d79a4d17361a3d27b88 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__PROCESSOR_H
-#define ASM_X86__PROCESSOR_H
+#ifndef _ASM_X86_PROCESSOR_H
+#define _ASM_X86_PROCESSOR_H
 
 #include <asm/processor-flags.h>
 
@@ -933,4 +933,4 @@ extern void start_thread(struct pt_regs *regs, unsigned long new_ip,
 extern int get_tsc_mode(unsigned long adr);
 extern int set_tsc_mode(unsigned int val);
 
-#endif /* ASM_X86__PROCESSOR_H */
+#endif /* _ASM_X86_PROCESSOR_H */
similarity index 88%
rename from include/asm-x86/proto.h
rename to arch/x86/include/asm/proto.h
index 6e89e8b4de0ec1c9f20f30ee2736116666a01d0e..d6a22f92ba7797a1f11b77e2b6ac90cd06499e07 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__PROTO_H
-#define ASM_X86__PROTO_H
+#ifndef _ASM_X86_PROTO_H
+#define _ASM_X86_PROTO_H
 
 #include <asm/ldt.h>
 
@@ -29,4 +29,4 @@ long do_arch_prctl(struct task_struct *task, int code, unsigned long addr);
 #define round_up(x, y) (((x) + (y) - 1) & ~((y) - 1))
 #define round_down(x, y) ((x) & ~((y) - 1))
 
-#endif /* ASM_X86__PROTO_H */
+#endif /* _ASM_X86_PROTO_H */
similarity index 97%
rename from include/asm-x86/ptrace-abi.h
rename to arch/x86/include/asm/ptrace-abi.h
index 4298b8882a782ab23ac101fcf48322eb78ea2cbb..25f1bb8fc626ab00b14ba65fa56e4477e74afd30 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__PTRACE_ABI_H
-#define ASM_X86__PTRACE_ABI_H
+#ifndef _ASM_X86_PTRACE_ABI_H
+#define _ASM_X86_PTRACE_ABI_H
 
 #ifdef __i386__
 
@@ -142,4 +142,4 @@ struct ptrace_bts_config {
 */
 #endif /* CONFIG_X86_PTRACE_BTS */
 
-#endif /* ASM_X86__PTRACE_ABI_H */
+#endif /* _ASM_X86_PTRACE_ABI_H */
similarity index 98%
rename from include/asm-x86/ptrace.h
rename to arch/x86/include/asm/ptrace.h
index a2025525a15ab20dca199a9e3acf95b2d1d7fcff..d1531c8480b78fdb42feb018c88e122ad93191b4 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__PTRACE_H
-#define ASM_X86__PTRACE_H
+#ifndef _ASM_X86_PTRACE_H
+#define _ASM_X86_PTRACE_H
 
 #include <linux/compiler.h>    /* For __user */
 #include <asm/ptrace-abi.h>
@@ -277,4 +277,4 @@ extern int do_set_thread_area(struct task_struct *p, int idx,
 
 #endif /* !__ASSEMBLY__ */
 
-#endif /* ASM_X86__PTRACE_H */
+#endif /* _ASM_X86_PTRACE_H */
similarity index 92%
rename from include/asm-x86/pvclock-abi.h
rename to arch/x86/include/asm/pvclock-abi.h
index edb3b4ecfc81687e46ff5aa8f24fb1a696349932..6d93508f262602eba40417dda7a0357d1ff47cb6 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__PVCLOCK_ABI_H
-#define ASM_X86__PVCLOCK_ABI_H
+#ifndef _ASM_X86_PVCLOCK_ABI_H
+#define _ASM_X86_PVCLOCK_ABI_H
 #ifndef __ASSEMBLY__
 
 /*
@@ -39,4 +39,4 @@ struct pvclock_wall_clock {
 } __attribute__((__packed__));
 
 #endif /* __ASSEMBLY__ */
-#endif /* ASM_X86__PVCLOCK_ABI_H */
+#endif /* _ASM_X86_PVCLOCK_ABI_H */
similarity index 82%
rename from include/asm-x86/pvclock.h
rename to arch/x86/include/asm/pvclock.h
index ad29e277fd6d6dd9d114e33b6113c42d03bf5d2c..53235fd5f8ce67cf4f085c092e611fa19fa04684 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__PVCLOCK_H
-#define ASM_X86__PVCLOCK_H
+#ifndef _ASM_X86_PVCLOCK_H
+#define _ASM_X86_PVCLOCK_H
 
 #include <linux/clocksource.h>
 #include <asm/pvclock-abi.h>
@@ -11,4 +11,4 @@ void pvclock_read_wallclock(struct pvclock_wall_clock *wall,
                            struct pvclock_vcpu_time_info *vcpu,
                            struct timespec *ts);
 
-#endif /* ASM_X86__PVCLOCK_H */
+#endif /* _ASM_X86_PVCLOCK_H */
similarity index 83%
rename from include/asm-x86/reboot.h
rename to arch/x86/include/asm/reboot.h
index 1c2f0ce9e31e44b2c7cd8ab8a30e708f95db44c6..df7710354f851dc957c497b30a77f4c6468c01df 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__REBOOT_H
-#define ASM_X86__REBOOT_H
+#ifndef _ASM_X86_REBOOT_H
+#define _ASM_X86_REBOOT_H
 
 struct pt_regs;
 
@@ -18,4 +18,4 @@ void native_machine_crash_shutdown(struct pt_regs *regs);
 void native_machine_shutdown(void);
 void machine_real_restart(const unsigned char *code, int length);
 
-#endif /* ASM_X86__REBOOT_H */
+#endif /* _ASM_X86_REBOOT_H */
diff --git a/arch/x86/include/asm/reboot_fixups.h b/arch/x86/include/asm/reboot_fixups.h
new file mode 100644 (file)
index 0000000..765debe
--- /dev/null
@@ -0,0 +1,6 @@
+#ifndef _ASM_X86_REBOOT_FIXUPS_H
+#define _ASM_X86_REBOOT_FIXUPS_H
+
+extern void mach_reboot_fixups(void);
+
+#endif /* _ASM_X86_REBOOT_FIXUPS_H */
similarity index 94%
rename from include/asm-x86/required-features.h
rename to arch/x86/include/asm/required-features.h
index a01c4e376331ab48f65df1cd979439022fbd7cde..d5cd6c586881f89639d486a92033d3ce19442ca0 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__REQUIRED_FEATURES_H
-#define ASM_X86__REQUIRED_FEATURES_H
+#ifndef _ASM_X86_REQUIRED_FEATURES_H
+#define _ASM_X86_REQUIRED_FEATURES_H
 
 /* Define minimum CPUID feature set for kernel These bits are checked
    really early to actually display a visible error message before the
@@ -79,4 +79,4 @@
 #define REQUIRED_MASK6 0
 #define REQUIRED_MASK7 0
 
-#endif /* ASM_X86__REQUIRED_FEATURES_H */
+#endif /* _ASM_X86_REQUIRED_FEATURES_H */
similarity index 81%
rename from include/asm-x86/resume-trace.h
rename to arch/x86/include/asm/resume-trace.h
index e39376d7de50f8e33b3bf22fb2c3d32c82bd89f9..3ff1c2cb1da574d7bf36dabfb215da168d674d58 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__RESUME_TRACE_H
-#define ASM_X86__RESUME_TRACE_H
+#ifndef _ASM_X86_RESUME_TRACE_H
+#define _ASM_X86_RESUME_TRACE_H
 
 #include <asm/asm.h>
 
@@ -18,4 +18,4 @@ do {                                                          \
        }                                                       \
 } while (0)
 
-#endif /* ASM_X86__RESUME_TRACE_H */
+#endif /* _ASM_X86_RESUME_TRACE_H */
similarity index 97%
rename from include/asm-x86/rio.h
rename to arch/x86/include/asm/rio.h
index 5e1256bdee83b791499000cb873b0135437e826f..97bab6388a92ec3ea7ae7c006544d649fb6b56d6 100644 (file)
@@ -5,8 +5,8 @@
  * Author: Laurent Vivier <Laurent.Vivier@bull.net>
  */
 
-#ifndef ASM_X86__RIO_H
-#define ASM_X86__RIO_H
+#ifndef _ASM_X86_RIO_H
+#define _ASM_X86_RIO_H
 
 #define RIO_TABLE_VERSION      3
 
@@ -60,4 +60,4 @@ enum {
        ALT_CALGARY     = 5,    /* Second Planar Calgary      */
 };
 
-#endif /* ASM_X86__RIO_H */
+#endif /* _ASM_X86_RIO_H */
similarity index 55%
rename from include/asm-x86/rwlock.h
rename to arch/x86/include/asm/rwlock.h
index 48a3109e1a7d83e1101c13864c444dcad3741fad..6a8c0d6451080658c6b2bee54fad409b11d47a9a 100644 (file)
@@ -1,8 +1,8 @@
-#ifndef ASM_X86__RWLOCK_H
-#define ASM_X86__RWLOCK_H
+#ifndef _ASM_X86_RWLOCK_H
+#define _ASM_X86_RWLOCK_H
 
 #define RW_LOCK_BIAS            0x01000000
 
 /* Actual code is in asm/spinlock.h or in arch/x86/lib/rwlock.S */
 
-#endif /* ASM_X86__RWLOCK_H */
+#endif /* _ASM_X86_RWLOCK_H */
similarity index 98%
rename from include/asm-x86/rwsem.h
rename to arch/x86/include/asm/rwsem.h
index 3ff3015b71a8367f738cb8c1974c09665b569ed3..ca7517d3377634b6251ce727326d06dd30627fc5 100644 (file)
@@ -29,8 +29,8 @@
  * front, then they'll all be woken up, but no other readers will be.
  */
 
-#ifndef ASM_X86__RWSEM_H
-#define ASM_X86__RWSEM_H
+#ifndef _ASM_X86_RWSEM_H
+#define _ASM_X86_RWSEM_H
 
 #ifndef _LINUX_RWSEM_H
 #error "please don't include asm/rwsem.h directly, use linux/rwsem.h instead"
@@ -262,4 +262,4 @@ static inline int rwsem_is_locked(struct rw_semaphore *sem)
 }
 
 #endif /* __KERNEL__ */
-#endif /* ASM_X86__RWSEM_H */
+#endif /* _ASM_X86_RWSEM_H */
similarity index 87%
rename from include/asm-x86/scatterlist.h
rename to arch/x86/include/asm/scatterlist.h
index ee48f880005d13e8244c56bf6a59cb68845fdd2e..263d397d2eefec625804871ddf7163d951bbc869 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__SCATTERLIST_H
-#define ASM_X86__SCATTERLIST_H
+#ifndef _ASM_X86_SCATTERLIST_H
+#define _ASM_X86_SCATTERLIST_H
 
 #include <asm/types.h>
 
@@ -30,4 +30,4 @@ struct scatterlist {
 # define sg_dma_len(sg)                ((sg)->dma_length)
 #endif
 
-#endif /* ASM_X86__SCATTERLIST_H */
+#endif /* _ASM_X86_SCATTERLIST_H */
similarity index 74%
rename from include/asm-x86/seccomp_32.h
rename to arch/x86/include/asm/seccomp_32.h
index cf9ab2dbcef1f07c0e3f864579d8f75c721a6005..a6ad87b352c448e8b1f2c2b3e3dd9591fe593248 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__SECCOMP_32_H
-#define ASM_X86__SECCOMP_32_H
+#ifndef _ASM_X86_SECCOMP_32_H
+#define _ASM_X86_SECCOMP_32_H
 
 #include <linux/thread_info.h>
 
@@ -14,4 +14,4 @@
 #define __NR_seccomp_exit __NR_exit
 #define __NR_seccomp_sigreturn __NR_sigreturn
 
-#endif /* ASM_X86__SECCOMP_32_H */
+#endif /* _ASM_X86_SECCOMP_32_H */
similarity index 84%
rename from include/asm-x86/seccomp_64.h
rename to arch/x86/include/asm/seccomp_64.h
index 03274cea751f78e460afdd6fa66bb4c1937cb3c1..4171bb794e9e736bbfcb60588a4e9d81d1edcb31 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__SECCOMP_64_H
-#define ASM_X86__SECCOMP_64_H
+#ifndef _ASM_X86_SECCOMP_64_H
+#define _ASM_X86_SECCOMP_64_H
 
 #include <linux/thread_info.h>
 
@@ -22,4 +22,4 @@
 #define __NR_seccomp_exit_32 __NR_ia32_exit
 #define __NR_seccomp_sigreturn_32 __NR_ia32_sigreturn
 
-#endif /* ASM_X86__SECCOMP_64_H */
+#endif /* _ASM_X86_SECCOMP_64_H */
similarity index 98%
rename from include/asm-x86/segment.h
rename to arch/x86/include/asm/segment.h
index 5d6e6945489152932b8e0f1216a035fc53e9fb33..1dc1b51ac6232f12b4de181c9c343328cc7bfd07 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__SEGMENT_H
-#define ASM_X86__SEGMENT_H
+#ifndef _ASM_X86_SEGMENT_H
+#define _ASM_X86_SEGMENT_H
 
 /* Constructor for a conventional segment GDT (or LDT) entry */
 /* This is a macro so it can be used in initializers */
@@ -206,4 +206,4 @@ extern const char early_idt_handlers[NUM_EXCEPTION_VECTORS][10];
 #endif
 #endif
 
-#endif /* ASM_X86__SEGMENT_H */
+#endif /* _ASM_X86_SEGMENT_H */
similarity index 88%
rename from include/asm-x86/sembuf.h
rename to arch/x86/include/asm/sembuf.h
index 81f06b7e5a3f2685a88a1b7103253c3a69e34c79..ee50c801f7b7eda1d4ea2aeea1f99cfaf1b03ccd 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__SEMBUF_H
-#define ASM_X86__SEMBUF_H
+#ifndef _ASM_X86_SEMBUF_H
+#define _ASM_X86_SEMBUF_H
 
 /*
  * The semid64_ds structure for x86 architecture.
@@ -21,4 +21,4 @@ struct semid64_ds {
        unsigned long   __unused4;
 };
 
-#endif /* ASM_X86__SEMBUF_H */
+#endif /* _ASM_X86_SEMBUF_H */
similarity index 92%
rename from include/asm-x86/serial.h
rename to arch/x86/include/asm/serial.h
index 303660b671e5cf6d07d02201578225cc0dfcb3ee..628c801535ea912c00a57654310a832acca2e67f 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__SERIAL_H
-#define ASM_X86__SERIAL_H
+#ifndef _ASM_X86_SERIAL_H
+#define _ASM_X86_SERIAL_H
 
 /*
  * This assumes you have a 1.8432 MHz clock for your UART.
@@ -26,4 +26,4 @@
        { 0, BASE_BAUD, 0x3E8, 4, STD_COM_FLAGS },      /* ttyS2 */     \
        { 0, BASE_BAUD, 0x2E8, 3, STD_COM4_FLAGS },     /* ttyS3 */
 
-#endif /* ASM_X86__SERIAL_H */
+#endif /* _ASM_X86_SERIAL_H */
similarity index 96%
rename from include/asm-x86/setup.h
rename to arch/x86/include/asm/setup.h
index 11b6cc14b289686f3eff7ae2d908540fc866b747..f12d37237465df8b0a181d37685b212c0dd70cd1 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__SETUP_H
-#define ASM_X86__SETUP_H
+#ifndef _ASM_X86_SETUP_H
+#define _ASM_X86_SETUP_H
 
 #define COMMAND_LINE_SIZE 2048
 
@@ -102,4 +102,4 @@ void __init x86_64_start_reservations(char *real_mode_data);
 #endif /* __ASSEMBLY__ */
 #endif  /*  __KERNEL__  */
 
-#endif /* ASM_X86__SETUP_H */
+#endif /* _ASM_X86_SETUP_H */
similarity index 93%
rename from include/asm-x86/shmbuf.h
rename to arch/x86/include/asm/shmbuf.h
index f51aec2298e9998f919d87bc734da9d994d82860..b51413b749711f133882d9e21c432d4c28a68463 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__SHMBUF_H
-#define ASM_X86__SHMBUF_H
+#ifndef _ASM_X86_SHMBUF_H
+#define _ASM_X86_SHMBUF_H
 
 /*
  * The shmid64_ds structure for x86 architecture.
@@ -48,4 +48,4 @@ struct shminfo64 {
        unsigned long   __unused4;
 };
 
-#endif /* ASM_X86__SHMBUF_H */
+#endif /* _ASM_X86_SHMBUF_H */
diff --git a/arch/x86/include/asm/shmparam.h b/arch/x86/include/asm/shmparam.h
new file mode 100644 (file)
index 0000000..0880cf0
--- /dev/null
@@ -0,0 +1,6 @@
+#ifndef _ASM_X86_SHMPARAM_H
+#define _ASM_X86_SHMPARAM_H
+
+#define SHMLBA PAGE_SIZE        /* attach addr a multiple of this */
+
+#endif /* _ASM_X86_SHMPARAM_H */
similarity index 98%
rename from include/asm-x86/sigcontext.h
rename to arch/x86/include/asm/sigcontext.h
index ee813f4fe5d531f13aff53defed8a581ce5913fc..0afcb5e58acc51e8cc06959abcf66d0d5a25ea95 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__SIGCONTEXT_H
-#define ASM_X86__SIGCONTEXT_H
+#ifndef _ASM_X86_SIGCONTEXT_H
+#define _ASM_X86_SIGCONTEXT_H
 
 #include <linux/compiler.h>
 #include <asm/types.h>
@@ -281,4 +281,4 @@ struct _xstate {
        /* new processor state extensions go here */
 };
 
-#endif /* ASM_X86__SIGCONTEXT_H */
+#endif /* _ASM_X86_SIGCONTEXT_H */
similarity index 93%
rename from include/asm-x86/sigcontext32.h
rename to arch/x86/include/asm/sigcontext32.h
index 8c347032c2f28d5a390d75306100d0105b74c5ad..6126188cf3a9faa2aa3fa28bb3358fdd209cc908 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__SIGCONTEXT32_H
-#define ASM_X86__SIGCONTEXT32_H
+#ifndef _ASM_X86_SIGCONTEXT32_H
+#define _ASM_X86_SIGCONTEXT32_H
 
 /* signal context for 32bit programs. */
 
@@ -72,4 +72,4 @@ struct sigcontext_ia32 {
        unsigned int cr2;
 };
 
-#endif /* ASM_X86__SIGCONTEXT32_H */
+#endif /* _ASM_X86_SIGCONTEXT32_H */
similarity index 56%
rename from include/asm-x86/siginfo.h
rename to arch/x86/include/asm/siginfo.h
index 808bdfb2958c600628df8fbc52317169033e6492..fc1aa553564604c405569eea428d3a10398bcc55 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__SIGINFO_H
-#define ASM_X86__SIGINFO_H
+#ifndef _ASM_X86_SIGINFO_H
+#define _ASM_X86_SIGINFO_H
 
 #ifdef __x86_64__
 # define __ARCH_SI_PREAMBLE_SIZE       (4 * sizeof(int))
@@ -7,4 +7,4 @@
 
 #include <asm-generic/siginfo.h>
 
-#endif /* ASM_X86__SIGINFO_H */
+#endif /* _ASM_X86_SIGINFO_H */
similarity index 98%
rename from include/asm-x86/signal.h
rename to arch/x86/include/asm/signal.h
index 65acc82d267a6f3b75a42f856ae9b0ec007cf70a..96ac44f275da40f24a73b5180b9e4c240d5fc8ba 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__SIGNAL_H
-#define ASM_X86__SIGNAL_H
+#ifndef _ASM_X86_SIGNAL_H
+#define _ASM_X86_SIGNAL_H
 
 #ifndef __ASSEMBLY__
 #include <linux/types.h>
@@ -259,4 +259,4 @@ struct pt_regs;
 #endif /* __KERNEL__ */
 #endif /* __ASSEMBLY__ */
 
-#endif /* ASM_X86__SIGNAL_H */
+#endif /* _ASM_X86_SIGNAL_H */
similarity index 98%
rename from include/asm-x86/smp.h
rename to arch/x86/include/asm/smp.h
index a6afc29f2dd9981e713a36d3ec14b507796415bf..2766021aef80fc75453492ab611f683397e6aa16 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__SMP_H
-#define ASM_X86__SMP_H
+#ifndef _ASM_X86_SMP_H
+#define _ASM_X86_SMP_H
 #ifndef __ASSEMBLY__
 #include <linux/cpumask.h>
 #include <linux/init.h>
@@ -226,4 +226,4 @@ static inline int hard_smp_processor_id(void)
 #endif /* CONFIG_X86_LOCAL_APIC */
 
 #endif /* __ASSEMBLY__ */
-#endif /* ASM_X86__SMP_H */
+#endif /* _ASM_X86_SMP_H */
similarity index 93%
rename from include/asm-x86/socket.h
rename to arch/x86/include/asm/socket.h
index db73274c83c3b3ea302dff7a233fab452745c838..8ab9cc8b2eccb8949e99f7e2adb19144dedbebb3 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__SOCKET_H
-#define ASM_X86__SOCKET_H
+#ifndef _ASM_X86_SOCKET_H
+#define _ASM_X86_SOCKET_H
 
 #include <asm/sockios.h>
 
@@ -54,4 +54,4 @@
 
 #define SO_MARK                        36
 
-#endif /* ASM_X86__SOCKET_H */
+#endif /* _ASM_X86_SOCKET_H */
similarity index 76%
rename from include/asm-x86/sockios.h
rename to arch/x86/include/asm/sockios.h
index a006704fdc8427cf4b4cd134bf9695375dbc3af5..49cc72b5d3c914fa5bb98f181e37768018cc6782 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__SOCKIOS_H
-#define ASM_X86__SOCKIOS_H
+#ifndef _ASM_X86_SOCKIOS_H
+#define _ASM_X86_SOCKIOS_H
 
 /* Socket-level I/O control calls. */
 #define FIOSETOWN      0x8901
@@ -10,4 +10,4 @@
 #define SIOCGSTAMP     0x8906          /* Get stamp (timeval) */
 #define SIOCGSTAMPNS   0x8907          /* Get stamp (timespec) */
 
-#endif /* ASM_X86__SOCKIOS_H */
+#endif /* _ASM_X86_SOCKIOS_H */
similarity index 89%
rename from include/asm-x86/sparsemem.h
rename to arch/x86/include/asm/sparsemem.h
index 38f8e6bc3186bb52ce64245870d651f20c24d6fd..be44f7dab395ad87492e0021cbf7adb99cadb1d2 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__SPARSEMEM_H
-#define ASM_X86__SPARSEMEM_H
+#ifndef _ASM_X86_SPARSEMEM_H
+#define _ASM_X86_SPARSEMEM_H
 
 #ifdef CONFIG_SPARSEMEM
 /*
@@ -31,4 +31,4 @@
 #endif
 
 #endif /* CONFIG_SPARSEMEM */
-#endif /* ASM_X86__SPARSEMEM_H */
+#endif /* _ASM_X86_SPARSEMEM_H */
similarity index 99%
rename from include/asm-x86/spinlock.h
rename to arch/x86/include/asm/spinlock.h
index 157ff7fab97aba964216472e6f67aac147e3b901..d17c91981da2f1c94a5fb045067f821ece61b4fe 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__SPINLOCK_H
-#define ASM_X86__SPINLOCK_H
+#ifndef _ASM_X86_SPINLOCK_H
+#define _ASM_X86_SPINLOCK_H
 
 #include <asm/atomic.h>
 #include <asm/rwlock.h>
@@ -361,4 +361,4 @@ static inline void __raw_write_unlock(raw_rwlock_t *rw)
 #define _raw_read_relax(lock)  cpu_relax()
 #define _raw_write_relax(lock) cpu_relax()
 
-#endif /* ASM_X86__SPINLOCK_H */
+#endif /* _ASM_X86_SPINLOCK_H */
similarity index 74%
rename from include/asm-x86/spinlock_types.h
rename to arch/x86/include/asm/spinlock_types.h
index 6aa9b562c5080ae0ac7295a0adefea9ff31c138b..845f81c87091b6d63075faefecc1d74a93c45d85 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__SPINLOCK_TYPES_H
-#define ASM_X86__SPINLOCK_TYPES_H
+#ifndef _ASM_X86_SPINLOCK_TYPES_H
+#define _ASM_X86_SPINLOCK_TYPES_H
 
 #ifndef __LINUX_SPINLOCK_TYPES_H
 # error "please don't include this file directly"
@@ -17,4 +17,4 @@ typedef struct {
 
 #define __RAW_RW_LOCK_UNLOCKED         { RW_LOCK_BIAS }
 
-#endif /* ASM_X86__SPINLOCK_TYPES_H */
+#endif /* _ASM_X86_SPINLOCK_TYPES_H */
similarity index 93%
rename from include/asm-x86/srat.h
rename to arch/x86/include/asm/srat.h
index 5363e4f7e1cddb7b52f0db52be72eb185f5a2a5a..b508d639d1a72b654119236a9356131824d749e0 100644 (file)
@@ -24,8 +24,8 @@
  * Send feedback to Pat Gaughen <gone@us.ibm.com>
  */
 
-#ifndef ASM_X86__SRAT_H
-#define ASM_X86__SRAT_H
+#ifndef _ASM_X86_SRAT_H
+#define _ASM_X86_SRAT_H
 
 #ifdef CONFIG_ACPI_NUMA
 extern int get_memcfg_from_srat(void);
@@ -36,4 +36,4 @@ static inline int get_memcfg_from_srat(void)
 }
 #endif
 
-#endif /* ASM_X86__SRAT_H */
+#endif /* _ASM_X86_SRAT_H */
similarity index 85%
rename from include/asm-x86/stacktrace.h
rename to arch/x86/include/asm/stacktrace.h
index f43517e28532fd930a6cf017591ac7f1bee5febc..f517944b2b176618f51d9791adb9fed4f08864ae 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__STACKTRACE_H
-#define ASM_X86__STACKTRACE_H
+#ifndef _ASM_X86_STACKTRACE_H
+#define _ASM_X86_STACKTRACE_H
 
 extern int kstack_depth_to_print;
 
@@ -18,4 +18,4 @@ void dump_trace(struct task_struct *tsk, struct pt_regs *regs,
                unsigned long *stack, unsigned long bp,
                const struct stacktrace_ops *ops, void *data);
 
-#endif /* ASM_X86__STACKTRACE_H */
+#endif /* _ASM_X86_STACKTRACE_H */
similarity index 96%
rename from include/asm-x86/stat.h
rename to arch/x86/include/asm/stat.h
index 1e120f62890546f58311c213d8f46d8ec2f0d065..e0b1d9bbcbc66b2b1717949537795c2688cd09bc 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__STAT_H
-#define ASM_X86__STAT_H
+#ifndef _ASM_X86_STAT_H
+#define _ASM_X86_STAT_H
 
 #define STAT_HAVE_NSEC 1
 
@@ -111,4 +111,4 @@ struct __old_kernel_stat {
 #endif
 };
 
-#endif /* ASM_X86__STAT_H */
+#endif /* _ASM_X86_STAT_H */
similarity index 76%
rename from include/asm-x86/statfs.h
rename to arch/x86/include/asm/statfs.h
index ca5dc19dd461f95368b38fc9fb8c96bebd86d58d..2d0adbf99a8e2ce94a7e5a3a13a936c16283b815 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__STATFS_H
-#define ASM_X86__STATFS_H
+#ifndef _ASM_X86_STATFS_H
+#define _ASM_X86_STATFS_H
 
 /*
  * We need compat_statfs64 to be packed, because the i386 ABI won't
@@ -9,4 +9,4 @@
 #define ARCH_PACK_COMPAT_STATFS64 __attribute__((packed,aligned(4)))
 
 #include <asm-generic/statfs.h>
-#endif /* ASM_X86__STATFS_H */
+#endif /* _ASM_X86_STATFS_H */
similarity index 98%
rename from include/asm-x86/string_32.h
rename to arch/x86/include/asm/string_32.h
index 487843ed245a54bd91dadaca58413b650b0976cb..0e0e3ba827f74dcad11f51f898bf1f1311afa805 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__STRING_32_H
-#define ASM_X86__STRING_32_H
+#ifndef _ASM_X86_STRING_32_H
+#define _ASM_X86_STRING_32_H
 
 #ifdef __KERNEL__
 
@@ -323,4 +323,4 @@ extern void *memscan(void *addr, int c, size_t size);
 
 #endif /* __KERNEL__ */
 
-#endif /* ASM_X86__STRING_32_H */
+#endif /* _ASM_X86_STRING_32_H */
similarity index 94%
rename from include/asm-x86/string_64.h
rename to arch/x86/include/asm/string_64.h
index a2add11d3b66a6424f528cd365aaf6818db9556a..2afe164bf1e67a73f622c751adaeed870e12075f 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__STRING_64_H
-#define ASM_X86__STRING_64_H
+#ifndef _ASM_X86_STRING_64_H
+#define _ASM_X86_STRING_64_H
 
 #ifdef __KERNEL__
 
@@ -57,4 +57,4 @@ int strcmp(const char *cs, const char *ct);
 
 #endif /* __KERNEL__ */
 
-#endif /* ASM_X86__STRING_64_H */
+#endif /* _ASM_X86_STRING_64_H */
similarity index 92%
rename from include/asm-x86/suspend_32.h
rename to arch/x86/include/asm/suspend_32.h
index acb6d4d491f4d35b704b2dac6e52ce21cb409161..a5074bd0f8be5a268888237d14668b5ea9eb4ab4 100644 (file)
@@ -3,8 +3,8 @@
  * Based on code
  * Copyright 2001 Patrick Mochel <mochel@osdl.org>
  */
-#ifndef ASM_X86__SUSPEND_32_H
-#define ASM_X86__SUSPEND_32_H
+#ifndef _ASM_X86_SUSPEND_32_H
+#define _ASM_X86_SUSPEND_32_H
 
 #include <asm/desc.h>
 #include <asm/i387.h>
@@ -48,4 +48,4 @@ static inline void acpi_save_register_state(unsigned long return_point)
 extern int acpi_save_state_mem(void);
 #endif
 
-#endif /* ASM_X86__SUSPEND_32_H */
+#endif /* _ASM_X86_SUSPEND_32_H */
similarity index 92%
rename from include/asm-x86/suspend_64.h
rename to arch/x86/include/asm/suspend_64.h
index cf821dd310e81c9bf8858452188f70152bfe17a3..06284f42b7599a8f46669fc3e4f6c9d8bbea7eb7 100644 (file)
@@ -3,8 +3,8 @@
  * Based on code
  * Copyright 2001 Patrick Mochel <mochel@osdl.org>
  */
-#ifndef ASM_X86__SUSPEND_64_H
-#define ASM_X86__SUSPEND_64_H
+#ifndef _ASM_X86_SUSPEND_64_H
+#define _ASM_X86_SUSPEND_64_H
 
 #include <asm/desc.h>
 #include <asm/i387.h>
@@ -49,4 +49,4 @@ extern int acpi_save_state_mem(void);
 extern char core_restore_code;
 extern char restore_registers;
 
-#endif /* ASM_X86__SUSPEND_64_H */
+#endif /* _ASM_X86_SUSPEND_64_H */
similarity index 95%
rename from include/asm-x86/swiotlb.h
rename to arch/x86/include/asm/swiotlb.h
index 1e20adbcad4b0cff70243b4ed71c7182e2371c64..51fb2c76ad7492c01a66c60f6dd99816c2f0351b 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__SWIOTLB_H
-#define ASM_X86__SWIOTLB_H
+#ifndef _ASM_X86_SWIOTLB_H
+#define _ASM_X86_SWIOTLB_H
 
 #include <asm/dma-mapping.h>
 
@@ -55,4 +55,4 @@ static inline void pci_swiotlb_init(void)
 
 static inline void dma_mark_clean(void *addr, size_t size) {}
 
-#endif /* ASM_X86__SWIOTLB_H */
+#endif /* _ASM_X86_SWIOTLB_H */
similarity index 97%
rename from include/asm-x86/sync_bitops.h
rename to arch/x86/include/asm/sync_bitops.h
index b689bee71104da4ba5b9eff3fa597606cfdd9de3..9d09b4073b60f137e970be710ebc171a4b001125 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__SYNC_BITOPS_H
-#define ASM_X86__SYNC_BITOPS_H
+#ifndef _ASM_X86_SYNC_BITOPS_H
+#define _ASM_X86_SYNC_BITOPS_H
 
 /*
  * Copyright 1992, Linus Torvalds.
@@ -127,4 +127,4 @@ static inline int sync_test_and_change_bit(int nr, volatile unsigned long *addr)
 
 #undef ADDR
 
-#endif /* ASM_X86__SYNC_BITOPS_H */
+#endif /* _ASM_X86_SYNC_BITOPS_H */
similarity index 98%
rename from include/asm-x86/syscall.h
rename to arch/x86/include/asm/syscall.h
index 04c47dc5597cf9f002408ca2590210b0477fa74b..1d88f6957d3967cf456cfad166990eb2d8dda8e0 100644 (file)
@@ -10,8 +10,8 @@
  * See asm-generic/syscall.h for descriptions of what we must do here.
  */
 
-#ifndef _ASM_SYSCALL_H
-#define _ASM_SYSCALL_H 1
+#ifndef _ASM_X86_SYSCALL_H
+#define _ASM_X86_SYSCALL_H
 
 #include <linux/sched.h>
 #include <linux/err.h>
@@ -208,4 +208,4 @@ static inline void syscall_set_arguments(struct task_struct *task,
 
 #endif /* CONFIG_X86_32 */
 
-#endif /* _ASM_SYSCALL_H */
+#endif /* _ASM_X86_SYSCALL_H */
similarity index 99%
rename from include/asm-x86/system.h
rename to arch/x86/include/asm/system.h
index b20c894660f95ee1d056d86a238e2bb116cb673c..2ed3f0f44ff73519a149b37c9bd658a26361c8de 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__SYSTEM_H
-#define ASM_X86__SYSTEM_H
+#ifndef _ASM_X86_SYSTEM_H
+#define _ASM_X86_SYSTEM_H
 
 #include <asm/asm.h>
 #include <asm/segment.h>
@@ -422,4 +422,4 @@ static inline void rdtsc_barrier(void)
        alternative(ASM_NOP3, "lfence", X86_FEATURE_LFENCE_RDTSC);
 }
 
-#endif /* ASM_X86__SYSTEM_H */
+#endif /* _ASM_X86_SYSTEM_H */
similarity index 77%
rename from include/asm-x86/system_64.h
rename to arch/x86/include/asm/system_64.h
index 5aedb8bffc5a0c50fc3e6ac4576efc4686a94b37..1159e091ad09c66a9f3efab3a387e9536493165d 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__SYSTEM_64_H
-#define ASM_X86__SYSTEM_64_H
+#ifndef _ASM_X86_SYSTEM_64_H
+#define _ASM_X86_SYSTEM_64_H
 
 #include <asm/segment.h>
 #include <asm/cmpxchg.h>
@@ -19,4 +19,4 @@ static inline void write_cr8(unsigned long val)
 
 #include <linux/irqflags.h>
 
-#endif /* ASM_X86__SYSTEM_64_H */
+#endif /* _ASM_X86_SYSTEM_64_H */
similarity index 95%
rename from include/asm-x86/tce.h
rename to arch/x86/include/asm/tce.h
index e7932d7fbbab9d10ccff23b170f54d20a9e15a32..7a6677c1a7156b5caba4695d236c310f892b5171 100644 (file)
@@ -21,8 +21,8 @@
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
  */
 
-#ifndef ASM_X86__TCE_H
-#define ASM_X86__TCE_H
+#ifndef _ASM_X86_TCE_H
+#define _ASM_X86_TCE_H
 
 extern unsigned int specified_table_size;
 struct iommu_table;
@@ -45,4 +45,4 @@ extern void * __init alloc_tce_table(void);
 extern void __init free_tce_table(void *tbl);
 extern int __init build_tce_table(struct pci_dev *dev, void __iomem *bbar);
 
-#endif /* ASM_X86__TCE_H */
+#endif /* _ASM_X86_TCE_H */
similarity index 98%
rename from include/asm-x86/termbits.h
rename to arch/x86/include/asm/termbits.h
index 3d00dc5e0c717967fb0b5a73663df7850c695a58..af1b70ea440fe2e4d6fded733d86a91bcb4d89af 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__TERMBITS_H
-#define ASM_X86__TERMBITS_H
+#ifndef _ASM_X86_TERMBITS_H
+#define _ASM_X86_TERMBITS_H
 
 #include <linux/posix_types.h>
 
@@ -195,4 +195,4 @@ struct ktermios {
 #define        TCSADRAIN       1
 #define        TCSAFLUSH       2
 
-#endif /* ASM_X86__TERMBITS_H */
+#endif /* _ASM_X86_TERMBITS_H */
similarity index 97%
rename from include/asm-x86/termios.h
rename to arch/x86/include/asm/termios.h
index e235db248071f4cbc14a881049e215b2ab6bd038..f72956331c49349623014bffc4c241f01c361eee 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__TERMIOS_H
-#define ASM_X86__TERMIOS_H
+#ifndef _ASM_X86_TERMIOS_H
+#define _ASM_X86_TERMIOS_H
 
 #include <asm/termbits.h>
 #include <asm/ioctls.h>
@@ -110,4 +110,4 @@ static inline int kernel_termios_to_user_termios_1(struct termios __user *u,
 
 #endif /* __KERNEL__ */
 
-#endif /* ASM_X86__TERMIOS_H */
+#endif /* _ASM_X86_TERMIOS_H */
diff --git a/arch/x86/include/asm/therm_throt.h b/arch/x86/include/asm/therm_throt.h
new file mode 100644 (file)
index 0000000..c62349e
--- /dev/null
@@ -0,0 +1,9 @@
+#ifndef _ASM_X86_THERM_THROT_H
+#define _ASM_X86_THERM_THROT_H
+
+#include <asm/atomic.h>
+
+extern atomic_t therm_throt_en;
+int therm_throt_process(int curr);
+
+#endif /* _ASM_X86_THERM_THROT_H */
similarity index 98%
rename from include/asm-x86/thread_info.h
rename to arch/x86/include/asm/thread_info.h
index 3f4e52bb77f56449adc92d2bd08f48da4803a78c..e44d379faad2b891245ef9cc2332dcaf8f8491c5 100644 (file)
@@ -4,8 +4,8 @@
  * - Incorporating suggestions made by Linus Torvalds and Dave Miller
  */
 
-#ifndef ASM_X86__THREAD_INFO_H
-#define ASM_X86__THREAD_INFO_H
+#ifndef _ASM_X86_THREAD_INFO_H
+#define _ASM_X86_THREAD_INFO_H
 
 #include <linux/compiler.h>
 #include <asm/page.h>
@@ -261,4 +261,4 @@ extern void free_thread_info(struct thread_info *ti);
 extern int arch_dup_task_struct(struct task_struct *dst, struct task_struct *src);
 #define arch_task_cache_init arch_task_cache_init
 #endif
-#endif /* ASM_X86__THREAD_INFO_H */
+#endif /* _ASM_X86_THREAD_INFO_H */
similarity index 93%
rename from include/asm-x86/time.h
rename to arch/x86/include/asm/time.h
index 3e724eef7ac468f118bb8c7c95edac31577cc739..50c733aac421b2a850238590fd0820a186bfcab7 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__TIME_H
-#define ASM_X86__TIME_H
+#ifndef _ASM_X86_TIME_H
+#define _ASM_X86_TIME_H
 
 extern void hpet_time_init(void);
 
@@ -60,4 +60,4 @@ extern void time_init(void);
 
 extern unsigned long __init calibrate_cpu(void);
 
-#endif /* ASM_X86__TIME_H */
+#endif /* _ASM_X86_TIME_H */
similarity index 95%
rename from include/asm-x86/timer.h
rename to arch/x86/include/asm/timer.h
index d0babce4b47a6ecbc9d3ca62bf084665c49a02b9..2bb6a835c453c0ced2d9b7e78e998e7fde5d8c3e 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__TIMER_H
-#define ASM_X86__TIMER_H
+#ifndef _ASM_X86_TIMER_H
+#define _ASM_X86_TIMER_H
 #include <linux/init.h>
 #include <linux/pm.h>
 #include <linux/percpu.h>
@@ -63,4 +63,4 @@ static inline unsigned long long cycles_2_ns(unsigned long long cyc)
        return ns;
 }
 
-#endif /* ASM_X86__TIMER_H */
+#endif /* _ASM_X86_TIMER_H */
similarity index 84%
rename from include/asm-x86/timex.h
rename to arch/x86/include/asm/timex.h
index d1ce2416a5da14e61d151150622e4dbe7491c866..1287dc1347d67417918454fcbc59d1959bf48e7e 100644 (file)
@@ -1,6 +1,6 @@
 /* x86 architecture timex specifications */
-#ifndef ASM_X86__TIMEX_H
-#define ASM_X86__TIMEX_H
+#ifndef _ASM_X86_TIMEX_H
+#define _ASM_X86_TIMEX_H
 
 #include <asm/processor.h>
 #include <asm/tsc.h>
@@ -16,4 +16,4 @@
 
 #define ARCH_HAS_READ_CURRENT_TIMER
 
-#endif /* ASM_X86__TIMEX_H */
+#endif /* _ASM_X86_TIMEX_H */
similarity index 76%
rename from include/asm-x86/tlb.h
rename to arch/x86/include/asm/tlb.h
index db36e9e89e873c7d65a2115c119ec7d828aa6133..829215fef9eeba089e4d3a315d5a6cf0bf9c3c21 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__TLB_H
-#define ASM_X86__TLB_H
+#ifndef _ASM_X86_TLB_H
+#define _ASM_X86_TLB_H
 
 #define tlb_start_vma(tlb, vma) do { } while (0)
 #define tlb_end_vma(tlb, vma) do { } while (0)
@@ -8,4 +8,4 @@
 
 #include <asm-generic/tlb.h>
 
-#endif /* ASM_X86__TLB_H */
+#endif /* _ASM_X86_TLB_H */
similarity index 97%
rename from include/asm-x86/tlbflush.h
rename to arch/x86/include/asm/tlbflush.h
index 3cdd08b5bdb741d0dc55352295a6efa0058bb944..0e7bbb5491169f69c4b0b0e2d0e98a8445d95fcd 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__TLBFLUSH_H
-#define ASM_X86__TLBFLUSH_H
+#ifndef _ASM_X86_TLBFLUSH_H
+#define _ASM_X86_TLBFLUSH_H
 
 #include <linux/mm.h>
 #include <linux/sched.h>
@@ -175,4 +175,4 @@ static inline void flush_tlb_kernel_range(unsigned long start,
        flush_tlb_all();
 }
 
-#endif /* ASM_X86__TLBFLUSH_H */
+#endif /* _ASM_X86_TLBFLUSH_H */
similarity index 98%
rename from include/asm-x86/topology.h
rename to arch/x86/include/asm/topology.h
index 7eca9bc022b2dd40568f6ff963dcd271a17de616..90ac7718469a5b416bfd90350b24ade716698925 100644 (file)
@@ -22,8 +22,8 @@
  *
  * Send feedback to <colpatch@us.ibm.com>
  */
-#ifndef ASM_X86__TOPOLOGY_H
-#define ASM_X86__TOPOLOGY_H
+#ifndef _ASM_X86_TOPOLOGY_H
+#define _ASM_X86_TOPOLOGY_H
 
 #ifdef CONFIG_X86_32
 # ifdef CONFIG_X86_HT
@@ -255,4 +255,4 @@ static inline void set_mp_bus_to_node(int busnum, int node)
 }
 #endif
 
-#endif /* ASM_X86__TOPOLOGY_H */
+#endif /* _ASM_X86_TOPOLOGY_H */
similarity index 79%
rename from include/asm-x86/trampoline.h
rename to arch/x86/include/asm/trampoline.h
index 0406bbd898a9601efbb5af853340712ed53e19a9..fa0d79facdbc4b0175db51082d1afcaad3f4a060 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__TRAMPOLINE_H
-#define ASM_X86__TRAMPOLINE_H
+#ifndef _ASM_X86_TRAMPOLINE_H
+#define _ASM_X86_TRAMPOLINE_H
 
 #ifndef __ASSEMBLY__
 
@@ -18,4 +18,4 @@ extern unsigned long setup_trampoline(void);
 
 #endif /* __ASSEMBLY__ */
 
-#endif /* ASM_X86__TRAMPOLINE_H */
+#endif /* _ASM_X86_TRAMPOLINE_H */
similarity index 97%
rename from include/asm-x86/traps.h
rename to arch/x86/include/asm/traps.h
index 6c3dc2c65751fbb832d8c7fa26dc318c401c80b2..45dee286e45cda98bc1fe20e79c30ccded41ff5d 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__TRAPS_H
-#define ASM_X86__TRAPS_H
+#ifndef _ASM_X86_TRAPS_H
+#define _ASM_X86_TRAPS_H
 
 #include <asm/debugreg.h>
 
@@ -78,4 +78,4 @@ unsigned long patch_espfix_desc(unsigned long, unsigned long);
 asmlinkage void math_emulate(long);
 #endif
 
-#endif /* ASM_X86__TRAPS_H */
+#endif /* _ASM_X86_TRAPS_H */
similarity index 93%
rename from include/asm-x86/tsc.h
rename to arch/x86/include/asm/tsc.h
index ad0f5c41e78cde2ba21c653cc4a159faed9e27d7..38ae163cc91b00bf029d5ed5e29cd8ba96bd461b 100644 (file)
@@ -1,8 +1,8 @@
 /*
  * x86 TSC related functions
  */
-#ifndef ASM_X86__TSC_H
-#define ASM_X86__TSC_H
+#ifndef _ASM_X86_TSC_H
+#define _ASM_X86_TSC_H
 
 #include <asm/processor.h>
 
@@ -59,4 +59,4 @@ extern void check_tsc_sync_target(void);
 
 extern int notsc_setup(char *);
 
-#endif /* ASM_X86__TSC_H */
+#endif /* _ASM_X86_TSC_H */
similarity index 87%
rename from include/asm-x86/types.h
rename to arch/x86/include/asm/types.h
index e78b52e17444ac245618369c52d34514805481f9..e6f7363200773e13f94b02ef53a8dab57d974bef 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__TYPES_H
-#define ASM_X86__TYPES_H
+#ifndef _ASM_X86_TYPES_H
+#define _ASM_X86_TYPES_H
 
 #include <asm-generic/int-ll64.h>
 
@@ -33,4 +33,4 @@ typedef u32 dma_addr_t;
 #endif /* __ASSEMBLY__ */
 #endif /* __KERNEL__ */
 
-#endif /* ASM_X86__TYPES_H */
+#endif /* _ASM_X86_TYPES_H */
similarity index 99%
rename from include/asm-x86/uaccess.h
rename to arch/x86/include/asm/uaccess.h
index 48ebc0ad40ec17b66b700812c5c4792662227a8f..35c54921b2e434cdd95bbd223077f2b1155d0f1f 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__UACCESS_H
-#define ASM_X86__UACCESS_H
+#ifndef _ASM_X86_UACCESS_H
+#define _ASM_X86_UACCESS_H
 /*
  * User space memory access functions
  */
@@ -450,5 +450,5 @@ extern struct movsl_mask {
 # include "uaccess_64.h"
 #endif
 
-#endif /* ASM_X86__UACCESS_H */
+#endif /* _ASM_X86_UACCESS_H */
 
similarity index 98%
rename from include/asm-x86/uaccess_32.h
rename to arch/x86/include/asm/uaccess_32.h
index 6b5b57d9c6d1f9ee55cf15cebf75090696c63f45..d095a3aeea1b44d3063f0165c956d0a156c6ca38 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__UACCESS_32_H
-#define ASM_X86__UACCESS_32_H
+#ifndef _ASM_X86_UACCESS_32_H
+#define _ASM_X86_UACCESS_32_H
 
 /*
  * User space memory access functions
@@ -215,4 +215,4 @@ long strnlen_user(const char __user *str, long n);
 unsigned long __must_check clear_user(void __user *mem, unsigned long len);
 unsigned long __must_check __clear_user(void __user *mem, unsigned long len);
 
-#endif /* ASM_X86__UACCESS_32_H */
+#endif /* _ASM_X86_UACCESS_32_H */
similarity index 98%
rename from include/asm-x86/uaccess_64.h
rename to arch/x86/include/asm/uaccess_64.h
index c96c1f5d07a2c88e4f5ca547ea0f7154ac68583c..664f15280f14354dc057e1d97954db6baab4b959 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__UACCESS_64_H
-#define ASM_X86__UACCESS_64_H
+#ifndef _ASM_X86_UACCESS_64_H
+#define _ASM_X86_UACCESS_64_H
 
 /*
  * User space memory access functions
@@ -199,4 +199,4 @@ static inline int __copy_from_user_inatomic_nocache(void *dst,
 unsigned long
 copy_user_handle_tail(char *to, char *from, unsigned len, unsigned zerorest);
 
-#endif /* ASM_X86__UACCESS_64_H */
+#endif /* _ASM_X86_UACCESS_64_H */
similarity index 81%
rename from include/asm-x86/ucontext.h
rename to arch/x86/include/asm/ucontext.h
index 89eaa5456a7e1e86f25f92c41bd85d2bc629ec33..87324cf439d9bd83e918460213dddb3c55765c61 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__UCONTEXT_H
-#define ASM_X86__UCONTEXT_H
+#ifndef _ASM_X86_UCONTEXT_H
+#define _ASM_X86_UCONTEXT_H
 
 #define UC_FP_XSTATE   0x1     /* indicates the presence of extended state
                                 * information in the memory layout pointed
@@ -15,4 +15,4 @@ struct ucontext {
        sigset_t          uc_sigmask;   /* mask last for extensibility */
 };
 
-#endif /* ASM_X86__UCONTEXT_H */
+#endif /* _ASM_X86_UCONTEXT_H */
similarity index 69%
rename from include/asm-x86/unaligned.h
rename to arch/x86/include/asm/unaligned.h
index 59dcdec37160a02127780c1b7f9a76743c2041e0..a7bd416b4763832f0a9851df49e92c938b8c5232 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__UNALIGNED_H
-#define ASM_X86__UNALIGNED_H
+#ifndef _ASM_X86_UNALIGNED_H
+#define _ASM_X86_UNALIGNED_H
 
 /*
  * The x86 can do unaligned accesses itself.
@@ -11,4 +11,4 @@
 #define get_unaligned __get_unaligned_le
 #define put_unaligned __put_unaligned_le
 
-#endif /* ASM_X86__UNALIGNED_H */
+#endif /* _ASM_X86_UNALIGNED_H */
similarity index 99%
rename from include/asm-x86/unistd_32.h
rename to arch/x86/include/asm/unistd_32.h
index 017f4a87c9132bbce98f194b55d80c95ea3bfd65..f2bba78430a4d2628ca83203e193dcb6ee78a247 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__UNISTD_32_H
-#define ASM_X86__UNISTD_32_H
+#ifndef _ASM_X86_UNISTD_32_H
+#define _ASM_X86_UNISTD_32_H
 
 /*
  * This file contains the system call numbers.
 #endif
 
 #endif /* __KERNEL__ */
-#endif /* ASM_X86__UNISTD_32_H */
+#endif /* _ASM_X86_UNISTD_32_H */
similarity index 99%
rename from include/asm-x86/unistd_64.h
rename to arch/x86/include/asm/unistd_64.h
index ace83f1f678730134569f1efb3656a1d869156d4..834b2c1d89fb1a51cb32a47f647ad8b1e3c1bc4d 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__UNISTD_64_H
-#define ASM_X86__UNISTD_64_H
+#ifndef _ASM_X86_UNISTD_64_H
+#define _ASM_X86_UNISTD_64_H
 
 #ifndef __SYSCALL
 #define __SYSCALL(a, b)
@@ -690,4 +690,4 @@ __SYSCALL(__NR_inotify_init1, sys_inotify_init1)
 #define cond_syscall(x) asm(".weak\t" #x "\n\t.set\t" #x ",sys_ni_syscall")
 #endif /* __KERNEL__ */
 
-#endif /* ASM_X86__UNISTD_64_H */
+#endif /* _ASM_X86_UNISTD_64_H */
similarity index 70%
rename from include/asm-x86/unwind.h
rename to arch/x86/include/asm/unwind.h
index a2151567db44388a2465bc32924f7399942a821d..8b064bd9c5535fa741c404b6e202445a8a9a003b 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__UNWIND_H
-#define ASM_X86__UNWIND_H
+#ifndef _ASM_X86_UNWIND_H
+#define _ASM_X86_UNWIND_H
 
 #define UNW_PC(frame) ((void)(frame), 0UL)
 #define UNW_SP(frame) ((void)(frame), 0UL)
@@ -10,4 +10,4 @@ static inline int arch_unw_user_mode(const void *info)
        return 0;
 }
 
-#endif /* ASM_X86__UNWIND_H */
+#endif /* _ASM_X86_UNWIND_H */
similarity index 96%
rename from include/asm-x86/user32.h
rename to arch/x86/include/asm/user32.h
index aa66c1857f06580e80160b5f8c4f1a1d0495b1df..14cbb73ebcba488c730662f7129d6cff7c4997a2 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__USER32_H
-#define ASM_X86__USER32_H
+#ifndef _ASM_X86_USER32_H
+#define _ASM_X86_USER32_H
 
 /* IA32 compatible user structures for ptrace.
  * These should be used for 32bit coredumps too. */
@@ -67,4 +67,4 @@ struct user32 {
 };
 
 
-#endif /* ASM_X86__USER32_H */
+#endif /* _ASM_X86_USER32_H */
similarity index 98%
rename from include/asm-x86/user_32.h
rename to arch/x86/include/asm/user_32.h
index e0fe2f55f1a6c736bcc2e568b9f355c50ede638c..bebfd86440162d04f6022acbe98ecaf314765a00 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__USER_32_H
-#define ASM_X86__USER_32_H
+#ifndef _ASM_X86_USER_32_H
+#define _ASM_X86_USER_32_H
 
 #include <asm/page.h>
 /* Core file format: The core file is written in such a way that gdb
@@ -128,4 +128,4 @@ struct user{
 #define HOST_TEXT_START_ADDR (u.start_code)
 #define HOST_STACK_END_ADDR (u.start_stack + u.u_ssize * NBPG)
 
-#endif /* ASM_X86__USER_32_H */
+#endif /* _ASM_X86_USER_32_H */
similarity index 98%
rename from include/asm-x86/user_64.h
rename to arch/x86/include/asm/user_64.h
index 38b5799863b455ecd911ceb23685a9ec5bcde74b..faf2cd3e0d765166351d5487abd9075f8ab6f991 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__USER_64_H
-#define ASM_X86__USER_64_H
+#ifndef _ASM_X86_USER_64_H
+#define _ASM_X86_USER_64_H
 
 #include <asm/types.h>
 #include <asm/page.h>
@@ -134,4 +134,4 @@ struct user {
 #define HOST_TEXT_START_ADDR (u.start_code)
 #define HOST_STACK_END_ADDR (u.start_stack + u.u_ssize * NBPG)
 
-#endif /* ASM_X86__USER_64_H */
+#endif /* _ASM_X86_USER_64_H */
similarity index 96%
rename from include/asm-x86/uv/bios.h
rename to arch/x86/include/asm/uv/bios.h
index 215f1969c266c55b72722c64efc971ab56a49b5b..d931d3b7e6f71b394d87f5766835dd8ef892dfec 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__UV__BIOS_H
-#define ASM_X86__UV__BIOS_H
+#ifndef _ASM_X86_UV_BIOS_H
+#define _ASM_X86_UV_BIOS_H
 
 /*
  * UV BIOS layer definitions.
@@ -91,4 +91,4 @@ extern long uv_region_size;
 
 extern struct kobject *sgi_uv_kobj;    /* /sys/firmware/sgi_uv */
 
-#endif /* ASM_X86__UV__BIOS_H */
+#endif /* _ASM_X86_UV_BIOS_H */
similarity index 99%
rename from include/asm-x86/uv/uv_bau.h
rename to arch/x86/include/asm/uv/uv_bau.h
index 77153fb18f5e085c5b518cdee6e27a587d01a938..e2363253bbbf21431467516d99404c64eaeaec34 100644 (file)
@@ -8,8 +8,8 @@
  * Copyright (C) 2008 Silicon Graphics, Inc. All rights reserved.
  */
 
-#ifndef ASM_X86__UV__UV_BAU_H
-#define ASM_X86__UV__UV_BAU_H
+#ifndef _ASM_X86_UV_UV_BAU_H
+#define _ASM_X86_UV_UV_BAU_H
 
 #include <linux/bitmap.h>
 #define BITSPERBYTE 8
@@ -329,4 +329,4 @@ extern int uv_flush_tlb_others(cpumask_t *, struct mm_struct *, unsigned long);
 extern void uv_bau_message_intr1(void);
 extern void uv_bau_timeout_intr1(void);
 
-#endif /* ASM_X86__UV__UV_BAU_H */
+#endif /* _ASM_X86_UV_UV_BAU_H */
similarity index 99%
rename from include/asm-x86/uv/uv_hub.h
rename to arch/x86/include/asm/uv/uv_hub.h
index bdb5b01afbf591d66f5b1ec87ee859886459f594..c6ad93e315c815c46cce4388e9034190ee86300f 100644 (file)
@@ -8,8 +8,8 @@
  * Copyright (C) 2007-2008 Silicon Graphics, Inc. All rights reserved.
  */
 
-#ifndef ASM_X86__UV__UV_HUB_H
-#define ASM_X86__UV__UV_HUB_H
+#ifndef _ASM_X86_UV_UV_HUB_H
+#define _ASM_X86_UV_UV_HUB_H
 
 #include <linux/numa.h>
 #include <linux/percpu.h>
@@ -350,5 +350,5 @@ static inline int uv_num_possible_blades(void)
        return uv_possible_blades;
 }
 
-#endif /* ASM_X86__UV__UV_HUB_H */
+#endif /* _ASM_X86_UV_UV_HUB_H */
 
similarity index 90%
rename from include/asm-x86/uv/uv_irq.h
rename to arch/x86/include/asm/uv/uv_irq.h
index 8bf5f32da9c6f7a49850a582ba7d836d584df997..9613c8c0b64779862316b72a52b3d4b263d9d5f5 100644 (file)
@@ -8,8 +8,8 @@
  * Copyright (C) 2008 Silicon Graphics, Inc. All rights reserved.
  */
 
-#ifndef ASM_X86__UV__UV_IRQ_H
-#define ASM_X86__UV__UV_IRQ_H
+#ifndef _ASM_X86_UV_UV_IRQ_H
+#define _ASM_X86_UV_UV_IRQ_H
 
 /* If a generic version of this structure gets defined, eliminate this one. */
 struct uv_IO_APIC_route_entry {
@@ -33,4 +33,4 @@ extern void arch_disable_uv_irq(int, unsigned long);
 extern int uv_setup_irq(char *, int, int, unsigned long);
 extern void uv_teardown_irq(unsigned int, int, unsigned long);
 
-#endif /* ASM_X86__UV__UV_IRQ_H */
+#endif /* _ASM_X86_UV_UV_IRQ_H */
similarity index 99%
rename from include/asm-x86/uv/uv_mmrs.h
rename to arch/x86/include/asm/uv/uv_mmrs.h
index 8b03d89d2459e8f3664bf1dbca34593b40457407..dd627793a23444d109fa966cda31bc43d14a83e2 100644 (file)
@@ -8,8 +8,8 @@
  * Copyright (C) 2007-2008 Silicon Graphics, Inc. All rights reserved.
  */
 
-#ifndef ASM_X86__UV__UV_MMRS_H
-#define ASM_X86__UV__UV_MMRS_H
+#ifndef _ASM_X86_UV_UV_MMRS_H
+#define _ASM_X86_UV_UV_MMRS_H
 
 #define UV_MMR_ENABLE          (1UL << 63)
 
@@ -1292,4 +1292,4 @@ union uvh_si_alias2_overlay_config_u {
 };
 
 
-#endif /* ASM_X86__UV__UV_MMRS_H */
+#endif /* _ASM_X86_UV_UV_MMRS_H */
similarity index 94%
rename from include/asm-x86/vdso.h
rename to arch/x86/include/asm/vdso.h
index 4ab320913ea3abcef82fc8313127501249a201bb..9064052b73ded033f961c2756a981ad1789678f0 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__VDSO_H
-#define ASM_X86__VDSO_H
+#ifndef _ASM_X86_VDSO_H
+#define _ASM_X86_VDSO_H
 
 #ifdef CONFIG_X86_64
 extern const char VDSO64_PRELINK[];
@@ -44,4 +44,4 @@ extern const char vdso32_int80_start, vdso32_int80_end;
 extern const char vdso32_syscall_start, vdso32_syscall_end;
 extern const char vdso32_sysenter_start, vdso32_sysenter_end;
 
-#endif /* ASM_X86__VDSO_H */
+#endif /* _ASM_X86_VDSO_H */
similarity index 81%
rename from include/asm-x86/vga.h
rename to arch/x86/include/asm/vga.h
index b9e493d07d07a1478ec8d42538cf55fe54e3b970..c4b9dc2f67c5f6f7a095dd7d4a3a6bb7fd7b3975 100644 (file)
@@ -4,8 +4,8 @@
  *     (c) 1998 Martin Mares <mj@ucw.cz>
  */
 
-#ifndef ASM_X86__VGA_H
-#define ASM_X86__VGA_H
+#ifndef _ASM_X86_VGA_H
+#define _ASM_X86_VGA_H
 
 /*
  *     On the PC, we can just recalculate addresses and then
@@ -17,4 +17,4 @@
 #define vga_readb(x) (*(x))
 #define vga_writeb(x, y) (*(y) = (x))
 
-#endif /* ASM_X86__VGA_H */
+#endif /* _ASM_X86_VGA_H */
similarity index 87%
rename from include/asm-x86/vgtod.h
rename to arch/x86/include/asm/vgtod.h
index 38fd133640211790b4dfe3e0b31a7f171d52e88c..dc27a69e5d2ab1754153afb9281d6023caa18cd4 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__VGTOD_H
-#define ASM_X86__VGTOD_H
+#ifndef _ASM_X86_VGTOD_H
+#define _ASM_X86_VGTOD_H
 
 #include <asm/vsyscall.h>
 #include <linux/clocksource.h>
@@ -26,4 +26,4 @@ extern struct vsyscall_gtod_data __vsyscall_gtod_data
 __section_vsyscall_gtod_data;
 extern struct vsyscall_gtod_data vsyscall_gtod_data;
 
-#endif /* ASM_X86__VGTOD_H */
+#endif /* _ASM_X86_VGTOD_H */
similarity index 97%
rename from include/asm-x86/visws/cobalt.h
rename to arch/x86/include/asm/visws/cobalt.h
index 9627a8fe84e9275a28728fd81158ff465ac1cba9..166adf61e770927e6b33ccc4d013104ad82fb906 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__VISWS__COBALT_H
-#define ASM_X86__VISWS__COBALT_H
+#ifndef _ASM_X86_VISWS_COBALT_H
+#define _ASM_X86_VISWS_COBALT_H
 
 #include <asm/fixmap.h>
 
@@ -122,4 +122,4 @@ extern char visws_board_type;
 
 extern char visws_board_rev;
 
-#endif /* ASM_X86__VISWS__COBALT_H */
+#endif /* _ASM_X86_VISWS_COBALT_H */
similarity index 92%
rename from include/asm-x86/visws/lithium.h
rename to arch/x86/include/asm/visws/lithium.h
index b36d3b378c6353dd2c62811ae8d94afafa8e55fd..a10d89bc12707af65dcce88ebfea9460f84b4b31 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__VISWS__LITHIUM_H
-#define ASM_X86__VISWS__LITHIUM_H
+#ifndef _ASM_X86_VISWS_LITHIUM_H
+#define _ASM_X86_VISWS_LITHIUM_H
 
 #include <asm/fixmap.h>
 
@@ -49,5 +49,5 @@ static inline unsigned short li_pcib_read16(unsigned long reg)
        return *((volatile unsigned short *)(LI_PCIB_VADDR+reg));
 }
 
-#endif /* ASM_X86__VISWS__LITHIUM_H */
+#endif /* _ASM_X86_VISWS_LITHIUM_H */
 
similarity index 96%
rename from include/asm-x86/visws/piix4.h
rename to arch/x86/include/asm/visws/piix4.h
index 61c938045ec95175dc74f81a9b414defb731bc03..d0af4d338e7f201510f169a762d7a5ea56a1b702 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__VISWS__PIIX4_H
-#define ASM_X86__VISWS__PIIX4_H
+#ifndef _ASM_X86_VISWS_PIIX4_H
+#define _ASM_X86_VISWS_PIIX4_H
 
 /*
  * PIIX4 as used on SGI Visual Workstations
  */
 #define        PIIX_GPI_STPCLK         0x4     // STPCLK signal routed back in
 
-#endif /* ASM_X86__VISWS__PIIX4_H */
+#endif /* _ASM_X86_VISWS_PIIX4_H */
similarity index 98%
rename from include/asm-x86/vm86.h
rename to arch/x86/include/asm/vm86.h
index 998bd18eb737d5911b8e3ffa62725957aae9a2d5..f9303602fbc09b733e3f52319d43e0c3c65c8de3 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__VM86_H
-#define ASM_X86__VM86_H
+#ifndef _ASM_X86_VM86_H
+#define _ASM_X86_VM86_H
 
 /*
  * I'm guessing at the VIF/VIP flag usage, but hope that this is how
@@ -205,4 +205,4 @@ static inline int handle_vm86_trap(struct kernel_vm86_regs *a, long b, int c)
 
 #endif /* __KERNEL__ */
 
-#endif /* ASM_X86__VM86_H */
+#endif /* _ASM_X86_VM86_H */
similarity index 97%
rename from include/asm-x86/vmi_time.h
rename to arch/x86/include/asm/vmi_time.h
index b2d39e6a08b73a0aec01c226e2a78c2e9ed02652..c6e0bee93e3c1859a1a801b1129d8b39938da50e 100644 (file)
@@ -22,8 +22,8 @@
  *
  */
 
-#ifndef ASM_X86__VMI_TIME_H
-#define ASM_X86__VMI_TIME_H
+#ifndef _ASM_X86_VMI_TIME_H
+#define _ASM_X86_VMI_TIME_H
 
 /*
  * Raw VMI call indices for timer functions
@@ -95,4 +95,4 @@ extern void __devinit vmi_time_ap_init(void);
 
 #define CONFIG_VMI_ALARM_HZ    100
 
-#endif /* ASM_X86__VMI_TIME_H */
+#endif /* _ASM_X86_VMI_TIME_H */
similarity index 92%
rename from include/asm-x86/vsyscall.h
rename to arch/x86/include/asm/vsyscall.h
index dcd4682413de06bb0c9e41126fbb4f6d8597b104..d0983d255fbdd13d1830bd8e9aa39cbd8c8ceae5 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__VSYSCALL_H
-#define ASM_X86__VSYSCALL_H
+#ifndef _ASM_X86_VSYSCALL_H
+#define _ASM_X86_VSYSCALL_H
 
 enum vsyscall_num {
        __NR_vgettimeofday,
@@ -41,4 +41,4 @@ extern void map_vsyscall(void);
 
 #endif /* __KERNEL__ */
 
-#endif /* ASM_X86__VSYSCALL_H */
+#endif /* _ASM_X86_VSYSCALL_H */
similarity index 78%
rename from include/asm-x86/xen/events.h
rename to arch/x86/include/asm/xen/events.h
index 8151f5b8b6cb577588b15f8cb0ef9eb1f42da451..19144184983aba9ba73bf022453a8ef85e6665db 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__XEN__EVENTS_H
-#define ASM_X86__XEN__EVENTS_H
+#ifndef _ASM_X86_XEN_EVENTS_H
+#define _ASM_X86_XEN_EVENTS_H
 
 enum ipi_vector {
        XEN_RESCHEDULE_VECTOR,
@@ -21,4 +21,4 @@ static inline void xen_do_IRQ(int irq, struct pt_regs *regs)
        do_IRQ(regs);
 }
 
-#endif /* ASM_X86__XEN__EVENTS_H */
+#endif /* _ASM_X86_XEN_EVENTS_H */
diff --git a/arch/x86/include/asm/xen/grant_table.h b/arch/x86/include/asm/xen/grant_table.h
new file mode 100644 (file)
index 0000000..fdbbb45
--- /dev/null
@@ -0,0 +1,7 @@
+#ifndef _ASM_X86_XEN_GRANT_TABLE_H
+#define _ASM_X86_XEN_GRANT_TABLE_H
+
+#define xen_alloc_vm_area(size)        alloc_vm_area(size)
+#define xen_free_vm_area(area) free_vm_area(area)
+
+#endif /* _ASM_X86_XEN_GRANT_TABLE_H */
similarity index 99%
rename from include/asm-x86/xen/hypercall.h
rename to arch/x86/include/asm/xen/hypercall.h
index 44f4259bee3f0d72a9de91a90c6adfaf0bec6abf..3f6000d95fe21f38dae31ff2dbfb8945703d91f4 100644 (file)
@@ -30,8 +30,8 @@
  * IN THE SOFTWARE.
  */
 
-#ifndef ASM_X86__XEN__HYPERCALL_H
-#define ASM_X86__XEN__HYPERCALL_H
+#ifndef _ASM_X86_XEN_HYPERCALL_H
+#define _ASM_X86_XEN_HYPERCALL_H
 
 #include <linux/errno.h>
 #include <linux/string.h>
@@ -524,4 +524,4 @@ MULTI_stack_switch(struct multicall_entry *mcl,
        mcl->args[1] = esp;
 }
 
-#endif /* ASM_X86__XEN__HYPERCALL_H */
+#endif /* _ASM_X86_XEN_HYPERCALL_H */
similarity index 96%
rename from include/asm-x86/xen/hypervisor.h
rename to arch/x86/include/asm/xen/hypervisor.h
index 445a247595606919e331875acfc34903eff380a9..a38d25ac87d2abdbfb6e077f304210aef43d78f8 100644 (file)
@@ -30,8 +30,8 @@
  * IN THE SOFTWARE.
  */
 
-#ifndef ASM_X86__XEN__HYPERVISOR_H
-#define ASM_X86__XEN__HYPERVISOR_H
+#ifndef _ASM_X86_XEN_HYPERVISOR_H
+#define _ASM_X86_XEN_HYPERVISOR_H
 
 #include <linux/types.h>
 #include <linux/kernel.h>
@@ -79,4 +79,4 @@ extern enum xen_domain_type xen_domain_type;
 #define xen_initial_domain()   (xen_pv_domain() && xen_start_info->flags & SIF_INITDOMAIN)
 #define xen_hvm_domain()       (xen_domain_type == XEN_HVM_DOMAIN)
 
-#endif /* ASM_X86__XEN__HYPERVISOR_H */
+#endif /* _ASM_X86_XEN_HYPERVISOR_H */
similarity index 98%
rename from include/asm-x86/xen/interface.h
rename to arch/x86/include/asm/xen/interface.h
index d077bba96da9753d4db566f511575ea8fe0b23db..e8506c1f0c55115e8282ef5b8177b824f88df282 100644 (file)
@@ -6,8 +6,8 @@
  * Copyright (c) 2004, K A Fraser
  */
 
-#ifndef ASM_X86__XEN__INTERFACE_H
-#define ASM_X86__XEN__INTERFACE_H
+#ifndef _ASM_X86_XEN_INTERFACE_H
+#define _ASM_X86_XEN_INTERFACE_H
 
 #ifdef __XEN__
 #define __DEFINE_GUEST_HANDLE(name, type) \
@@ -172,4 +172,4 @@ DEFINE_GUEST_HANDLE_STRUCT(vcpu_guest_context);
 #define XEN_CPUID          XEN_EMULATE_PREFIX "cpuid"
 #endif
 
-#endif /* ASM_X86__XEN__INTERFACE_H */
+#endif /* _ASM_X86_XEN_INTERFACE_H */
similarity index 95%
rename from include/asm-x86/xen/interface_32.h
rename to arch/x86/include/asm/xen/interface_32.h
index 08167e19fc66cdefbdc3e50c3457750a8c324115..42a7e004ae5ca5372553fec8a9059378ab6a55c4 100644 (file)
@@ -6,8 +6,8 @@
  * Copyright (c) 2004, K A Fraser
  */
 
-#ifndef ASM_X86__XEN__INTERFACE_32_H
-#define ASM_X86__XEN__INTERFACE_32_H
+#ifndef _ASM_X86_XEN_INTERFACE_32_H
+#define _ASM_X86_XEN_INTERFACE_32_H
 
 
 /*
@@ -94,4 +94,4 @@ typedef struct xen_callback xen_callback_t;
 #define xen_pfn_to_cr3(pfn) (((unsigned)(pfn) << 12) | ((unsigned)(pfn) >> 20))
 #define xen_cr3_to_pfn(cr3) (((unsigned)(cr3) >> 12) | ((unsigned)(cr3) << 20))
 
-#endif /* ASM_X86__XEN__INTERFACE_32_H */
+#endif /* _ASM_X86_XEN_INTERFACE_32_H */
similarity index 97%
rename from include/asm-x86/xen/interface_64.h
rename to arch/x86/include/asm/xen/interface_64.h
index 046c0f1e01d4095574ce63716f34f104bfc1d8fc..100d2662b97c3c8a821fc6039e93a06b7a2924c7 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__XEN__INTERFACE_64_H
-#define ASM_X86__XEN__INTERFACE_64_H
+#ifndef _ASM_X86_XEN_INTERFACE_64_H
+#define _ASM_X86_XEN_INTERFACE_64_H
 
 /*
  * 64-bit segment selectors
@@ -156,4 +156,4 @@ typedef unsigned long xen_callback_t;
 #endif /* !__ASSEMBLY__ */
 
 
-#endif /* ASM_X86__XEN__INTERFACE_64_H */
+#endif /* _ASM_X86_XEN_INTERFACE_64_H */
similarity index 98%
rename from include/asm-x86/xen/page.h
rename to arch/x86/include/asm/xen/page.h
index d5eada0a48d9bea73e8dcadeaf2379dc69ee3639..bc628998a1b9dc896a416d6ea0ef5293463c8a24 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__XEN__PAGE_H
-#define ASM_X86__XEN__PAGE_H
+#ifndef _ASM_X86_XEN_PAGE_H
+#define _ASM_X86_XEN_PAGE_H
 
 #include <linux/pfn.h>
 
@@ -162,4 +162,4 @@ xmaddr_t arbitrary_virt_to_machine(void *address);
 void make_lowmem_page_readonly(void *vaddr);
 void make_lowmem_page_readwrite(void *vaddr);
 
-#endif /* ASM_X86__XEN__PAGE_H */
+#endif /* _ASM_X86_XEN_PAGE_H */
similarity index 99%
rename from include/asm-x86/xor_32.h
rename to arch/x86/include/asm/xor_32.h
index 921b458404495b2ace1ee3f201f5040e2179a2ee..133b40a0f495fb69ba4fcc4c7f378b04391f28d7 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__XOR_32_H
-#define ASM_X86__XOR_32_H
+#ifndef _ASM_X86_XOR_32_H
+#define _ASM_X86_XOR_32_H
 
 /*
  * Optimized RAID-5 checksumming functions for MMX and SSE.
@@ -885,4 +885,4 @@ do {                                                        \
 #define XOR_SELECT_TEMPLATE(FASTEST)                   \
        (cpu_has_xmm ? &xor_block_pIII_sse : FASTEST)
 
-#endif /* ASM_X86__XOR_32_H */
+#endif /* _ASM_X86_XOR_32_H */
similarity index 98%
rename from include/asm-x86/xor_64.h
rename to arch/x86/include/asm/xor_64.h
index 2d3a18de295b5aa03e82fe209ae6c667f97abfd6..1549b5e261f616945ed1fdbcc5af8c7961a5dbb4 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ASM_X86__XOR_64_H
-#define ASM_X86__XOR_64_H
+#ifndef _ASM_X86_XOR_64_H
+#define _ASM_X86_XOR_64_H
 
 /*
  * Optimized RAID-5 checksumming functions for MMX and SSE.
@@ -358,4 +358,4 @@ do {                                                \
    deals with a load to a line that is being prefetched.  */
 #define XOR_SELECT_TEMPLATE(FASTEST) (&xor_block_sse)
 
-#endif /* ASM_X86__XOR_64_H */
+#endif /* _ASM_X86_XOR_64_H */
index 505543a75a561f1cfc207d4f88dffbd2718bc724..7fcf63d22f8b28c4457b6f8e7fb2eae54b071b1f 100644 (file)
@@ -22,7 +22,7 @@
 
 #define __NO_STUBS 1
 #undef __SYSCALL
-#undef ASM_X86__UNISTD_64_H
+#undef _ASM_X86_UNISTD_64_H
 #define __SYSCALL(nr, sym) [nr] = 1,
 static char syscalls[] = {
 #include <asm/unistd.h>
index 7f0b45a5d7887cf393452c7983073a683390f0e4..82ec6075c057b695cf6904a28a58fb8c60c37d7a 100644 (file)
@@ -25,7 +25,7 @@ obj-$(CONFIG_X86_LOCAL_APIC) += perfctr-watchdog.o
 quiet_cmd_mkcapflags = MKCAP   $@
       cmd_mkcapflags = $(PERL) $(srctree)/$(src)/mkcapflags.pl $< $@
 
-cpufeature = $(src)/../../../../include/asm-x86/cpufeature.h
+cpufeature = $(src)/../../include/asm/cpufeature.h
 
 targets += capflags.c
 $(obj)/capflags.c: $(cpufeature) $(src)/mkcapflags.pl FORCE
index 3d1be4f0fac563f56247204e8d62967872092268..de87d6008295c5459aa1cbc9f41037829e1c82c8 100644 (file)
@@ -8,12 +8,12 @@
 #define __NO_STUBS
 
 #define __SYSCALL(nr, sym) extern asmlinkage void sym(void) ;
-#undef ASM_X86__UNISTD_64_H
+#undef _ASM_X86_UNISTD_64_H
 #include <asm/unistd_64.h>
 
 #undef __SYSCALL
 #define __SYSCALL(nr, sym) [nr] = sym,
-#undef ASM_X86__UNISTD_64_H
+#undef _ASM_X86_UNISTD_64_H
 
 typedef void (*sys_call_ptr_t)(void);
 
index 565280ec1c6a221dd3cc3c2652c21548d9d58600..974f56d1ebe1fa6ba67a4998f96f63e1fbdc96e9 100644 (file)
@@ -2,7 +2,7 @@
 
 #include <xen/xenbus.h>
 
-#include <asm-x86/xen/hypervisor.h>
+#include <asm/xen/hypervisor.h>
 #include <asm/cpu.h>
 
 static void enable_hotplug_cpu(int cpu)
diff --git a/include/asm-um/a.out.h b/include/asm-um/a.out.h
deleted file mode 100644 (file)
index 754181e..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-/*
- * Copyright (C) 2007 Jeff Dike (jdike@{addtoit,linux.intel}.com)
- * Licensed under the GPL
- */
-
-#ifndef __UM_A_OUT_H
-#define __UM_A_OUT_H
-
-#include "asm/arch/a.out.h"
-
-#endif
diff --git a/include/asm-um/alternative-asm.h b/include/asm-um/alternative-asm.h
deleted file mode 100644 (file)
index 9aa9fa2..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-#ifndef __UM_ALTERNATIVE_ASM_I
-#define __UM_ALTERNATIVE_ASM_I
-
-#include "asm/arch/alternative-asm.h"
-
-#endif
diff --git a/include/asm-um/alternative.h b/include/asm-um/alternative.h
deleted file mode 100644 (file)
index b643439..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-#ifndef __UM_ALTERNATIVE_H
-#define __UM_ALTERNATIVE_H
-
-#include "asm/arch/alternative.h"
-
-#endif
diff --git a/include/asm-um/asm.h b/include/asm-um/asm.h
deleted file mode 100644 (file)
index af1269a..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-#ifndef __UM_ASM_H
-#define __UM_ASM_H
-
-#include "asm/arch/asm.h"
-
-#endif
diff --git a/include/asm-um/atomic.h b/include/asm-um/atomic.h
deleted file mode 100644 (file)
index b683f10..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-#ifndef __UM_ATOMIC_H
-#define __UM_ATOMIC_H
-
-/* The i386 atomic.h calls printk, but doesn't include kernel.h, so we
- * include it here.
- */
-#include "linux/kernel.h"
-
-#include "asm/arch/atomic.h"
-
-#endif
diff --git a/include/asm-um/bitops.h b/include/asm-um/bitops.h
deleted file mode 100644 (file)
index e4d38d4..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-#ifndef __UM_BITOPS_H
-#define __UM_BITOPS_H
-
-#ifndef _LINUX_BITOPS_H
-#error only <linux/bitops.h> can be included directly
-#endif
-
-#include "asm/arch/bitops.h"
-
-#endif
diff --git a/include/asm-um/boot.h b/include/asm-um/boot.h
deleted file mode 100644 (file)
index 09548c3..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-#ifndef __UM_BOOT_H
-#define __UM_BOOT_H
-
-#include "asm/arch/boot.h"
-
-#endif
diff --git a/include/asm-um/bug.h b/include/asm-um/bug.h
deleted file mode 100644 (file)
index 9e33b86..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-#ifndef __UM_BUG_H
-#define __UM_BUG_H
-
-#include <asm-generic/bug.h>
-
-#endif
diff --git a/include/asm-um/byteorder.h b/include/asm-um/byteorder.h
deleted file mode 100644 (file)
index eee0a83..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-#ifndef __UM_BYTEORDER_H
-#define __UM_BYTEORDER_H
-
-#include "asm/arch/byteorder.h"
-
-#endif
diff --git a/include/asm-um/cacheflush.h b/include/asm-um/cacheflush.h
deleted file mode 100644 (file)
index 12e9d4b..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-#ifndef __UM_CACHEFLUSH_H
-#define __UM_CACHEFLUSH_H
-
-#include "asm/arch/cacheflush.h"
-
-#endif
diff --git a/include/asm-um/calling.h b/include/asm-um/calling.h
deleted file mode 100644 (file)
index 0b2384c..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-# Copyright 2003 - 2004 Pathscale, Inc
-# Released under the GPL
-
-#ifndef __UM_CALLING_H /* XXX x86_64 */
-#define __UM_CALLING_H
-
-#include "asm/arch/calling.h"
-
-#endif
diff --git a/include/asm-um/cmpxchg.h b/include/asm-um/cmpxchg.h
deleted file mode 100644 (file)
index 529376a..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-#ifndef __UM_CMPXCHG_H
-#define __UM_CMPXCHG_H
-
-#include "asm/arch/cmpxchg.h"
-
-#endif
diff --git a/include/asm-um/cobalt.h b/include/asm-um/cobalt.h
deleted file mode 100644 (file)
index f813a68..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-#ifndef __UM_COBALT_H
-#define __UM_COBALT_H
-
-#include "asm/arch/cobalt.h"
-
-#endif
diff --git a/include/asm-um/cpufeature.h b/include/asm-um/cpufeature.h
deleted file mode 100644 (file)
index fb7bd42..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-#ifndef __UM_CPUFEATURE_H
-#define __UM_CPUFEATURE_H
-
-#include "asm/arch/cpufeature.h"
-
-#endif
diff --git a/include/asm-um/div64.h b/include/asm-um/div64.h
deleted file mode 100644 (file)
index 1e17f74..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-#ifndef _UM_DIV64_H
-#define _UM_DIV64_H
-
-#include "asm/arch/div64.h"
-
-#endif
diff --git a/include/asm-um/dwarf2.h b/include/asm-um/dwarf2.h
deleted file mode 100644 (file)
index d1a02e7..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-/* Copyright 2003 - 2004 Pathscale, Inc
- * Released under the GPL
- */
-
-/* Needed on x86_64 by thunk.S */
-#ifndef __UM_DWARF2_H
-#define __UM_DWARF2_H
-
-#include "asm/arch/dwarf2.h"
-
-#endif
diff --git a/include/asm-um/errno.h b/include/asm-um/errno.h
deleted file mode 100644 (file)
index b7a9e37..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-#ifndef __UM_ERRNO_H
-#define __UM_ERRNO_H
-
-#include "asm/arch/errno.h"
-
-#endif
diff --git a/include/asm-um/fcntl.h b/include/asm-um/fcntl.h
deleted file mode 100644 (file)
index 812a654..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-#ifndef __UM_FCNTL_H
-#define __UM_FCNTL_H
-
-#include "asm/arch/fcntl.h"
-
-#endif
diff --git a/include/asm-um/floppy.h b/include/asm-um/floppy.h
deleted file mode 100644 (file)
index 453e741..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-#ifndef __UM_FLOPPY_H
-#define __UM_FLOPPY_H
-
-#include "asm/arch/floppy.h"
-
-#endif
diff --git a/include/asm-um/frame.h b/include/asm-um/frame.h
deleted file mode 100644 (file)
index 8a8c1cb..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-#ifndef __UM_FRAME_I
-#define __UM_FRAME_I
-
-#include "asm/arch/frame.h"
-
-#endif
diff --git a/include/asm-um/highmem.h b/include/asm-um/highmem.h
deleted file mode 100644 (file)
index 36974cb..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-#ifndef __UM_HIGHMEM_H
-#define __UM_HIGHMEM_H
-
-#include "asm/page.h"
-#include "asm/fixmap.h"
-#include "asm/arch/highmem.h"
-
-#undef PKMAP_BASE
-
-#define PKMAP_BASE ((FIXADDR_START - LAST_PKMAP * PAGE_SIZE) & PMD_MASK)
-
-#endif
diff --git a/include/asm-um/ide.h b/include/asm-um/ide.h
deleted file mode 100644 (file)
index 3d1cceb..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-#ifndef __UM_IDE_H
-#define __UM_IDE_H
-
-#include "asm/arch/ide.h"
-
-#endif
diff --git a/include/asm-um/ioctl.h b/include/asm-um/ioctl.h
deleted file mode 100644 (file)
index cc22157..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-#ifndef __UM_IOCTL_H
-#define __UM_IOCTL_H
-
-#include "asm/arch/ioctl.h"
-
-#endif
diff --git a/include/asm-um/ioctls.h b/include/asm-um/ioctls.h
deleted file mode 100644 (file)
index 9a1a017..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-#ifndef __UM_IOCTLS_H
-#define __UM_IOCTLS_H
-
-#include "asm/arch/ioctls.h"
-
-#endif
diff --git a/include/asm-um/ipcbuf.h b/include/asm-um/ipcbuf.h
deleted file mode 100644 (file)
index bb2ad31..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-#ifndef __UM_IPCBUF_H
-#define __UM_IPCBUF_H
-
-#include "asm/arch/ipcbuf.h"
-
-#endif
diff --git a/include/asm-um/linkage.h b/include/asm-um/linkage.h
deleted file mode 100644 (file)
index 7dfce37..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-#ifndef __ASM_UM_LINKAGE_H
-#define __ASM_UM_LINKAGE_H
-
-#include "asm/arch/linkage.h"
-
-#endif
diff --git a/include/asm-um/local.h b/include/asm-um/local.h
deleted file mode 100644 (file)
index 9a280c5..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-#ifndef __UM_LOCAL_H
-#define __UM_LOCAL_H
-
-#include "asm/arch/local.h"
-
-#endif
diff --git a/include/asm-um/locks.h b/include/asm-um/locks.h
deleted file mode 100644 (file)
index f80030a..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-#ifndef __UM_LOCKS_H
-#define __UM_LOCKS_H
-
-#include "asm/arch/locks.h"
-
-#endif
diff --git a/include/asm-um/mca_dma.h b/include/asm-um/mca_dma.h
deleted file mode 100644 (file)
index e492e4e..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-#ifndef mca___UM_DMA_H
-#define mca___UM_DMA_H
-
-#include "asm/arch/mca_dma.h"
-
-#endif
diff --git a/include/asm-um/mman.h b/include/asm-um/mman.h
deleted file mode 100644 (file)
index b09ed52..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-#ifndef __UM_MMAN_H
-#define __UM_MMAN_H
-
-#include "asm/arch/mman.h"
-
-#endif
diff --git a/include/asm-um/module-generic.h b/include/asm-um/module-generic.h
deleted file mode 100644 (file)
index 5a265f5..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-#ifndef __UM_MODULE_GENERIC_H
-#define __UM_MODULE_GENERIC_H
-
-#include "asm/arch/module.h"
-
-#endif
diff --git a/include/asm-um/msgbuf.h b/include/asm-um/msgbuf.h
deleted file mode 100644 (file)
index 8ce8c30..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-#ifndef __UM_MSGBUF_H
-#define __UM_MSGBUF_H
-
-#include "asm/arch/msgbuf.h"
-
-#endif
diff --git a/include/asm-um/mtrr.h b/include/asm-um/mtrr.h
deleted file mode 100644 (file)
index 5e9cd12..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-#ifndef __UM_MTRR_H
-#define __UM_MTRR_H
-
-#include "asm/arch/mtrr.h"
-
-#endif
diff --git a/include/asm-um/nops.h b/include/asm-um/nops.h
deleted file mode 100644 (file)
index 814e9bf..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-#ifndef __UM_NOPS_H
-#define __UM_NOPS_H
-
-#include "asm/arch/nops.h"
-
-#endif
diff --git a/include/asm-um/paravirt.h b/include/asm-um/paravirt.h
deleted file mode 100644 (file)
index 9d6aaad..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-#ifndef __UM_PARAVIRT_H
-#define __UM_PARAVIRT_H
-
-#include "asm/arch/paravirt.h"
-
-#endif
diff --git a/include/asm-um/percpu.h b/include/asm-um/percpu.h
deleted file mode 100644 (file)
index 5723e2a..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-#ifndef __UM_PERCPU_H
-#define __UM_PERCPU_H
-
-#include "asm/arch/percpu.h"
-
-#endif
diff --git a/include/asm-um/poll.h b/include/asm-um/poll.h
deleted file mode 100644 (file)
index 1eb4e1b..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-#ifndef __UM_POLL_H
-#define __UM_POLL_H
-
-#include "asm/arch/poll.h"
-
-#endif
diff --git a/include/asm-um/posix_types.h b/include/asm-um/posix_types.h
deleted file mode 100644 (file)
index 32fb419..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-#ifndef __UM_POSIX_TYPES_H
-#define __UM_POSIX_TYPES_H
-
-#include "asm/arch/posix_types.h"
-
-#endif
diff --git a/include/asm-um/prctl.h b/include/asm-um/prctl.h
deleted file mode 100644 (file)
index 64b6d09..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-#ifndef __UM_PRCTL_H
-#define __UM_PRCTL_H
-
-#include "asm/arch/prctl.h"
-
-#endif
diff --git a/include/asm-um/resource.h b/include/asm-um/resource.h
deleted file mode 100644 (file)
index c9b0740..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-#ifndef __UM_RESOURCE_H
-#define __UM_RESOURCE_H
-
-#include "asm/arch/resource.h"
-
-#endif
diff --git a/include/asm-um/rwlock.h b/include/asm-um/rwlock.h
deleted file mode 100644 (file)
index ff383aa..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-#ifndef __UM_RWLOCK_H
-#define __UM_RWLOCK_H
-
-#include "asm/arch/rwlock.h"
-
-#endif
diff --git a/include/asm-um/rwsem.h b/include/asm-um/rwsem.h
deleted file mode 100644 (file)
index b5fc449..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-#ifndef __UM_RWSEM_H__
-#define __UM_RWSEM_H__
-
-#include "asm/arch/rwsem.h"
-
-#endif
diff --git a/include/asm-um/scatterlist.h b/include/asm-um/scatterlist.h
deleted file mode 100644 (file)
index e92016a..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-#ifndef __UM_SCATTERLIST_H
-#define __UM_SCATTERLIST_H
-
-#include "asm/arch/scatterlist.h"
-
-#endif
diff --git a/include/asm-um/sembuf.h b/include/asm-um/sembuf.h
deleted file mode 100644 (file)
index 1ae82c1..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-#ifndef __UM_SEMBUF_H
-#define __UM_SEMBUF_H
-
-#include "asm/arch/sembuf.h"
-
-#endif
diff --git a/include/asm-um/serial.h b/include/asm-um/serial.h
deleted file mode 100644 (file)
index 61ad07c..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-#ifndef __UM_SERIAL_H
-#define __UM_SERIAL_H
-
-#include "asm/arch/serial.h"
-
-#endif
diff --git a/include/asm-um/shmbuf.h b/include/asm-um/shmbuf.h
deleted file mode 100644 (file)
index 9684d4a..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-#ifndef __UM_SHMBUF_H
-#define __UM_SHMBUF_H
-
-#include "asm/arch/shmbuf.h"
-
-#endif
diff --git a/include/asm-um/shmparam.h b/include/asm-um/shmparam.h
deleted file mode 100644 (file)
index 124c001..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-#ifndef __UM_SHMPARAM_H
-#define __UM_SHMPARAM_H
-
-#include "asm/arch/shmparam.h"
-
-#endif
diff --git a/include/asm-um/sigcontext-generic.h b/include/asm-um/sigcontext-generic.h
deleted file mode 100644 (file)
index 1645870..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-#ifndef __UM_SIGCONTEXT_GENERIC_H
-#define __UM_SIGCONTEXT_GENERIC_H
-
-#include "asm/arch/sigcontext.h"
-
-#endif
diff --git a/include/asm-um/sigcontext-i386.h b/include/asm-um/sigcontext-i386.h
deleted file mode 100644 (file)
index b88333f..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-#ifndef __UM_SIGCONTEXT_I386_H
-#define __UM_SIGCONTEXT_I386_H
-
-#include "asm/sigcontext-generic.h"
-
-#endif
diff --git a/include/asm-um/sigcontext-ppc.h b/include/asm-um/sigcontext-ppc.h
deleted file mode 100644 (file)
index 2467f20..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-#ifndef __UM_SIGCONTEXT_PPC_H
-#define __UM_SIGCONTEXT_PPC_H
-
-#define pt_regs sys_pt_regs
-
-#include "asm/sigcontext-generic.h"
-
-#undef pt_regs
-
-#endif
diff --git a/include/asm-um/sigcontext-x86_64.h b/include/asm-um/sigcontext-x86_64.h
deleted file mode 100644 (file)
index b600e0b..0000000
+++ /dev/null
@@ -1,22 +0,0 @@
-/* Copyright 2003 PathScale, Inc.
- *
- * Licensed under the GPL
- */
-
-#ifndef __UM_SIGCONTEXT_X86_64_H
-#define __UM_SIGCONTEXT_X86_64_H
-
-#include "asm/sigcontext-generic.h"
-
-#endif
-
-/*
- * Overrides for Emacs so that we follow Linus's tabbing style.
- * Emacs will notice this stuff at the end of the file and automatically
- * adjust the settings for this buffer only.  This must remain at the end
- * of the file.
- * ---------------------------------------------------------------------------
- * Local variables:
- * c-file-style: "linux"
- * End:
- */
diff --git a/include/asm-um/siginfo.h b/include/asm-um/siginfo.h
deleted file mode 100644 (file)
index bec6124..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-#ifndef __UM_SIGINFO_H
-#define __UM_SIGINFO_H
-
-#include "asm/arch/siginfo.h"
-
-#endif
diff --git a/include/asm-um/signal.h b/include/asm-um/signal.h
deleted file mode 100644 (file)
index 52ed92c..0000000
+++ /dev/null
@@ -1,29 +0,0 @@
-/* 
- * Copyright (C) 2002 Jeff Dike (jdike@karaya.com)
- * Licensed under the GPL
- */
-
-#ifndef __UM_SIGNAL_H
-#define __UM_SIGNAL_H
-
-/* Need to kill the do_signal() declaration in the i386 signal.h */
-
-#define do_signal do_signal_renamed
-#include "asm/arch/signal.h"
-#undef do_signal
-#undef ptrace_signal_deliver
-
-#define ptrace_signal_deliver(regs, cookie) do {} while(0)
-
-#endif
-
-/*
- * Overrides for Emacs so that we follow Linus's tabbing style.
- * Emacs will notice this stuff at the end of the file and automatically
- * adjust the settings for this buffer only.  This must remain at the end
- * of the file.
- * ---------------------------------------------------------------------------
- * Local variables:
- * c-file-style: "linux"
- * End:
- */
diff --git a/include/asm-um/socket.h b/include/asm-um/socket.h
deleted file mode 100644 (file)
index 67886e4..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-#ifndef __UM_SOCKET_H
-#define __UM_SOCKET_H
-
-#include "asm/arch/socket.h"
-
-#endif
diff --git a/include/asm-um/sockios.h b/include/asm-um/sockios.h
deleted file mode 100644 (file)
index 93ee1c5..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-#ifndef __UM_SOCKIOS_H
-#define __UM_SOCKIOS_H
-
-#include "asm/arch/sockios.h"
-
-#endif
diff --git a/include/asm-um/spinlock.h b/include/asm-um/spinlock.h
deleted file mode 100644 (file)
index f18c828..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-#ifndef __UM_SPINLOCK_H
-#define __UM_SPINLOCK_H
-
-#include "asm/arch/spinlock.h"
-
-#endif
diff --git a/include/asm-um/spinlock_types.h b/include/asm-um/spinlock_types.h
deleted file mode 100644 (file)
index e5a9429..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-#ifndef __UM_SPINLOCK_TYPES_H
-#define __UM_SPINLOCK_TYPES_H
-
-#include "asm/arch/spinlock_types.h"
-
-#endif
diff --git a/include/asm-um/stat.h b/include/asm-um/stat.h
deleted file mode 100644 (file)
index 83ed85a..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-#ifndef __UM_STAT_H
-#define __UM_STAT_H
-
-#include "asm/arch/stat.h"
-
-#endif
diff --git a/include/asm-um/statfs.h b/include/asm-um/statfs.h
deleted file mode 100644 (file)
index ba6fb53..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-#ifndef _UM_STATFS_H
-#define _UM_STATFS_H
-
-#include "asm/arch/statfs.h"
-
-#endif
diff --git a/include/asm-um/string.h b/include/asm-um/string.h
deleted file mode 100644 (file)
index 9a0571f..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-#ifndef __UM_STRING_H
-#define __UM_STRING_H
-
-#include "asm/arch/string.h"
-#include "asm/archparam.h"
-
-#endif
diff --git a/include/asm-um/system-i386.h b/include/asm-um/system-i386.h
deleted file mode 100644 (file)
index c436263..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-#ifndef __UM_SYSTEM_I386_H
-#define __UM_SYSTEM_I386_H
-
-#include "asm/system-generic.h"
-    
-#endif
diff --git a/include/asm-um/system-ppc.h b/include/asm-um/system-ppc.h
deleted file mode 100644 (file)
index 17cde66..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-#ifndef __UM_SYSTEM_PPC_H
-#define __UM_SYSTEM_PPC_H
-
-#define _switch_to _ppc_switch_to
-
-#include "asm/arch/system.h"
-
-#undef _switch_to
-#include "asm/system-generic.h"
-
-#endif
diff --git a/include/asm-um/system-x86_64.h b/include/asm-um/system-x86_64.h
deleted file mode 100644 (file)
index e1b61b5..0000000
+++ /dev/null
@@ -1,23 +0,0 @@
-/*
- * Copyright 2003 PathScale, Inc.
- *
- * Licensed under the GPL
- */
-
-#ifndef __UM_SYSTEM_X86_64_H
-#define __UM_SYSTEM_X86_64_H
-
-#include "asm/system-generic.h"
-
-#endif
-
-/*
- * Overrides for Emacs so that we follow Linus's tabbing style.
- * Emacs will notice this stuff at the end of the file and automatically
- * adjust the settings for this buffer only.  This must remain at the end
- * of the file.
- * ---------------------------------------------------------------------------
- * Local variables:
- * c-file-style: "linux"
- * End:
- */
diff --git a/include/asm-um/termbits.h b/include/asm-um/termbits.h
deleted file mode 100644 (file)
index 5739c60..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-#ifndef __UM_TERMBITS_H
-#define __UM_TERMBITS_H
-
-#include "asm/arch/termbits.h"
-
-#endif
diff --git a/include/asm-um/termios.h b/include/asm-um/termios.h
deleted file mode 100644 (file)
index d9f97b3..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-#ifndef __UM_TERMIOS_H
-#define __UM_TERMIOS_H
-
-#include "asm/arch/termios.h"
-
-#endif
diff --git a/include/asm-um/types.h b/include/asm-um/types.h
deleted file mode 100644 (file)
index 816e959..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-#ifndef __UM_TYPES_H
-#define __UM_TYPES_H
-
-#include "asm/arch/types.h"
-
-#endif
diff --git a/include/asm-um/ucontext.h b/include/asm-um/ucontext.h
deleted file mode 100644 (file)
index 5c96c0e..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-#ifndef _ASM_UM_UCONTEXT_H
-#define _ASM_UM_UCONTEXT_H
-
-#include "asm/arch/ucontext.h"
-
-#endif
diff --git a/include/asm-um/unaligned.h b/include/asm-um/unaligned.h
deleted file mode 100644 (file)
index a471969..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-#ifndef _ASM_UM_UNALIGNED_H
-#define _ASM_UM_UNALIGNED_H
-
-#include "asm/arch/unaligned.h"
-
-#endif /* _ASM_UM_UNALIGNED_H */
diff --git a/include/asm-um/unistd.h b/include/asm-um/unistd.h
deleted file mode 100644 (file)
index 38bd9d9..0000000
+++ /dev/null
@@ -1,41 +0,0 @@
-/* 
- * Copyright (C) 2000 - 2004  Jeff Dike (jdike@karaya.com)
- * Licensed under the GPL
- */
-
-#ifndef _UM_UNISTD_H_
-#define _UM_UNISTD_H_
-
-#include <linux/syscalls.h>
-#include "linux/resource.h"
-#include "asm/uaccess.h"
-
-extern int um_execve(const char *file, char *const argv[], char *const env[]);
-
-#ifdef __KERNEL__
-/* We get __ARCH_WANT_OLD_STAT and __ARCH_WANT_STAT64 from the base arch */
-#define __ARCH_WANT_OLD_READDIR
-#define __ARCH_WANT_SYS_ALARM
-#define __ARCH_WANT_SYS_GETHOSTNAME
-#define __ARCH_WANT_SYS_PAUSE
-#define __ARCH_WANT_SYS_SGETMASK
-#define __ARCH_WANT_SYS_SIGNAL
-#define __ARCH_WANT_SYS_TIME
-#define __ARCH_WANT_SYS_UTIME
-#define __ARCH_WANT_SYS_WAITPID
-#define __ARCH_WANT_SYS_SOCKETCALL
-#define __ARCH_WANT_SYS_FADVISE64
-#define __ARCH_WANT_SYS_GETPGRP
-#define __ARCH_WANT_SYS_LLSEEK
-#define __ARCH_WANT_SYS_NICE
-#define __ARCH_WANT_SYS_OLD_GETRLIMIT
-#define __ARCH_WANT_SYS_OLDUMOUNT
-#define __ARCH_WANT_SYS_SIGPENDING
-#define __ARCH_WANT_SYS_SIGPROCMASK
-#define __ARCH_WANT_SYS_RT_SIGACTION
-#define __ARCH_WANT_SYS_RT_SIGSUSPEND
-#endif
-
-#include "asm/arch/unistd.h"
-
-#endif /* _UM_UNISTD_H_*/
diff --git a/include/asm-um/user.h b/include/asm-um/user.h
deleted file mode 100644 (file)
index aae414e..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-#ifndef __UM_USER_H
-#define __UM_USER_H
-
-#include "asm/arch/user.h"
-
-#endif
diff --git a/include/asm-um/vga.h b/include/asm-um/vga.h
deleted file mode 100644 (file)
index 903a592..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-#ifndef __UM_VGA_H
-#define __UM_VGA_H
-
-#include "asm/arch/vga.h"
-
-#endif
diff --git a/include/asm-um/vm86.h b/include/asm-um/vm86.h
deleted file mode 100644 (file)
index 7801f82..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-#ifndef __UM_VM86_H
-#define __UM_VM86_H
-
-#include "asm/arch/vm86.h"
-
-#endif
diff --git a/include/asm-x86/irq_remapping.h b/include/asm-x86/irq_remapping.h
deleted file mode 100644 (file)
index 78242c6..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-#ifndef _ASM_IRQ_REMAPPING_H
-#define _ASM_IRQ_REMAPPING_H
-
-extern int x2apic;
-
-#define IRTE_DEST(dest) ((x2apic) ? dest : dest << 8)
-
-#endif
diff --git a/include/asm-x86/mach-default/mach_mpspec.h b/include/asm-x86/mach-default/mach_mpspec.h
deleted file mode 100644 (file)
index d77646f..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-#ifndef ASM_X86__MACH_DEFAULT__MACH_MPSPEC_H
-#define ASM_X86__MACH_DEFAULT__MACH_MPSPEC_H
-
-#define MAX_IRQ_SOURCES 256
-
-#if CONFIG_BASE_SMALL == 0
-#define MAX_MP_BUSSES 256
-#else
-#define MAX_MP_BUSSES 32
-#endif
-
-#endif /* ASM_X86__MACH_DEFAULT__MACH_MPSPEC_H */
diff --git a/include/asm-x86/reboot_fixups.h b/include/asm-x86/reboot_fixups.h
deleted file mode 100644 (file)
index 2c2987d..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-#ifndef ASM_X86__REBOOT_FIXUPS_H
-#define ASM_X86__REBOOT_FIXUPS_H
-
-extern void mach_reboot_fixups(void);
-
-#endif /* ASM_X86__REBOOT_FIXUPS_H */
diff --git a/include/asm-x86/shmparam.h b/include/asm-x86/shmparam.h
deleted file mode 100644 (file)
index a83a1fd..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-#ifndef ASM_X86__SHMPARAM_H
-#define ASM_X86__SHMPARAM_H
-
-#define SHMLBA PAGE_SIZE        /* attach addr a multiple of this */
-
-#endif /* ASM_X86__SHMPARAM_H */
diff --git a/include/asm-x86/therm_throt.h b/include/asm-x86/therm_throt.h
deleted file mode 100644 (file)
index 1c7f57b..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-#ifndef ASM_X86__THERM_THROT_H
-#define ASM_X86__THERM_THROT_H
-
-#include <asm/atomic.h>
-
-extern atomic_t therm_throt_en;
-int therm_throt_process(int curr);
-
-#endif /* ASM_X86__THERM_THROT_H */
diff --git a/include/asm-x86/xen/grant_table.h b/include/asm-x86/xen/grant_table.h
deleted file mode 100644 (file)
index c4baab4..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-#ifndef ASM_X86__XEN__GRANT_TABLE_H
-#define ASM_X86__XEN__GRANT_TABLE_H
-
-#define xen_alloc_vm_area(size)        alloc_vm_area(size)
-#define xen_free_vm_area(area) free_vm_area(area)
-
-#endif /* ASM_X86__XEN__GRANT_TABLE_H */
index 366f8c7f62bf6de4d82a1ae543e6157a7de07548..41564b142c0451f8512905ee5534bec1910544b3 100755 (executable)
@@ -119,5 +119,5 @@ sed -n -e '/^\#define/ { s/[^_]*__NR_\([^[:space:]]*\).*/\
 \#endif/p }' $1
 }
 
-(ignore_list && syscall_list ${srctree}/include/asm-x86/unistd_32.h) | \
+(ignore_list && syscall_list ${srctree}/arch/x86/include/asm/unistd_32.h) | \
 $* -E -x c - > /dev/null
index fa1a7d565903075ef39d12ba69ecf580b3c37de9..fa8c2dd9c983ef3fa7617c0c87a28cb9ea4546b0 100644 (file)
@@ -4,7 +4,11 @@
 
 PHONY += oldconfig xconfig gconfig menuconfig config silentoldconfig update-po-config
 
+ifdef KBUILD_KCONFIG
+Kconfig := $(KBUILD_KCONFIG)
+else
 Kconfig := arch/$(SRCARCH)/Kconfig
+endif
 
 xconfig: $(obj)/qconf
        $< $(Kconfig)