kernel_optimize_test/arch/sparc/include/asm
Christoph Hellwig e28cbf2293 improve sys_newuname() for compat architectures
On an architecture that supports 32-bit compat we need to override the
reported machine in uname with the 32-bit value.  Instead of doing this
separately in every architecture introduce a COMPAT_UTS_MACHINE define in
<asm/compat.h> and apply it directly in sys_newuname().

Signed-off-by: Christoph Hellwig <hch@lst.de>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Paul Mundt <lethal@linux-sh.org>
Cc: Jeff Dike <jdike@addtoit.com>
Cc: Hirokazu Takata <takata@linux-m32r.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: H. Peter Anvin <hpa@zytor.com>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: Heiko Carstens <heiko.carstens@de.ibm.com>
Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
Cc: "Luck, Tony" <tony.luck@intel.com>
Cc: James Morris <jmorris@namei.org>
Cc: Andreas Schwab <schwab@linux-m68k.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2010-03-12 15:52:32 -08:00
..
agp.h agp: kill phys_to_gart() and gart_to_phys() 2009-08-03 09:05:00 +01:00
apb.h
apc.h
asi.h sparc,leon: Redefine MMU register access asi if CONFIG_LEON 2009-08-17 18:32:09 -07:00
asm-offsets.h kbuild: move asm-offsets.h to include/generated 2009-12-12 13:08:14 +01:00
asm.h
asmmacro.h
atomic_32.h
atomic_64.h
atomic.h
auxio_32.h
auxio_64.h
auxio.h
auxvec.h
backoff.h
bbc.h
bitext.h
bitops_32.h
bitops_64.h
bitops.h
bitsperlong.h
btext.h sparc64: Faster early-boot framebuffer console. 2009-11-27 17:33:43 -08:00
btfixup.h
bug.h
bugs.h
byteorder.h
cache.h
cacheflush_32.h block: add helpers to run flush_dcache_page() against a bio and a request's pages 2009-11-26 09:16:19 +01:00
cacheflush_64.h block: add helpers to run flush_dcache_page() against a bio and a request's pages 2009-11-26 09:16:19 +01:00
cacheflush.h
chafsr.h
checksum_32.h
checksum_64.h
checksum.h
chmctrl.h
clock.h
cmt.h
compat_signal.h
compat.h improve sys_newuname() for compat architectures 2010-03-12 15:52:32 -08:00
contregs.h
cpudata_32.h
cpudata_64.h sparc64: Move trap_block[] definitions into a new header file. 2009-06-16 04:56:08 -07:00
cpudata.h
cputime.h
current.h
cypress.h
dcr.h
dcu.h
delay_32.h
delay_64.h
delay.h
device.h Driver Core: Add platform device arch data V3 2009-07-22 00:28:38 +02:00
display7seg.h
div64.h
dma-mapping.h sparc: Add CONFIG_DMA_API_DEBUG support 2009-08-10 09:35:00 +02:00
dma.h
ebus_dma.h
ecc.h
eeprom.h
elf_32.h elf: kill USE_ELF_CORE_DUMP 2009-12-16 07:20:12 -08:00
elf_64.h sparc: TIF_ABI_PENDING bit removal 2010-01-29 08:22:01 -08:00
elf.h
emergency-restart.h
envctrl.h
errno.h
estate.h
fb.h
fbio.h
fcntl.h fix up O_SYNC comments 2009-12-17 11:03:24 -05:00
fhc.h
fixmap.h
floppy_32.h
floppy_64.h
floppy.h
fpumacro.h
ftrace.h sparc64: Add proper dynamic ftrace support. 2009-06-16 04:56:53 -07:00
futex_32.h
futex_64.h
futex.h
gpio.h
hardirq_32.h sparc32: convert to asm-generic/hardirq.h 2009-10-01 13:45:13 -07:00
hardirq_64.h
hardirq.h
head_32.h
head_64.h
head.h
highmem.h
hugetlb.h
hvtramp.h
hw_irq.h
hypervisor.h
ide.h
idprom.h
intr_queue.h
io_32.h sparc: Provide io{read,write}{16,32}be(). 2010-03-03 02:30:37 -08:00
io_64.h sparc: Provide io{read,write}{16,32}be(). 2010-03-03 02:30:37 -08:00
io-unit.h
io.h
ioctl.h
ioctls.h
iommu_32.h
iommu_64.h
iommu.h
ipcbuf.h
irq_32.h sparc32: convert to asm-generic/hardirq.h 2009-10-01 13:45:13 -07:00
irq_64.h debug lockups: Improve lockup detection, fix generic arch fallback 2009-08-03 09:56:52 +02:00
irq_regs.h
irq.h
irqflags_32.h
irqflags_64.h
irqflags.h
jsflash.h
Kbuild
kdebug_32.h
kdebug_64.h
kdebug.h
kgdb.h
kmap_types.h kmap_types: make most arches use generic header file 2009-06-16 19:47:51 -07:00
kprobes.h
ldc.h
leon_amba.h sparc,leon: CONFIG_SPARC_LEON option and leon specific files. 2009-08-17 18:32:09 -07:00
leon.h Added sparc_leon3_snooping_enabled() and converted extern inline to static inline 2009-11-16 02:54:09 -08:00
linkage.h
lmb.h
local.h
lsu.h
machines.h sparc,leon: Introduce the sparc-leon CPU type. 2009-08-17 18:32:10 -07:00
mbus.h
mc146818rtc_32.h
mc146818rtc_64.h
mc146818rtc.h
mdesc.h sparc64: Make mdesc_fill_in_cpu_data take a cpumask_t pointer. 2009-06-16 04:56:21 -07:00
memctrl.h
memreg.h
mman.h mm: add MAP_HUGETLB for mmaping pseudo-anonymous huge page regions 2009-09-22 07:17:41 -07:00
mmu_32.h
mmu_64.h
mmu_context_32.h
mmu_context_64.h
mmu_context.h
mmu.h
mmzone.h
module.h
mpmbox.h
msgbuf.h
msi.h
mutex.h
mxcc.h
nmi.h sparc64: Initial hw perf counter support. 2009-09-10 06:28:20 -07:00
ns87303.h
obio.h
of_device.h
of_platform.h
openprom.h
openpromio.h
oplib_32.h
oplib_64.h
oplib.h
page_32.h sparc32: Fix page_to_phys(). 2010-01-14 03:14:53 -08:00
page_64.h
page.h
param.h sparc: Simplify param.h by simply including <asm-generic/param.h> 2010-01-12 02:46:16 -08:00
parport.h
pbm.h
pci_32.h Merge branch 'linux-next' of git://git.kernel.org/pub/scm/linux/kernel/git/jbarnes/pci-2.6 2009-09-16 07:49:54 -07:00
pci_64.h sparc64/PCI: drop PCI_CACHE_LINE_BYTES 2009-11-04 08:47:10 -08:00
pci.h sparc: Use asm-generic/pci-dma-compat 2009-08-10 09:35:00 +02:00
pcic.h
pcr.h
percpu_32.h
percpu_64.h sparc64: Get rid of real_setup_per_cpu_areas(). 2009-06-16 04:56:23 -07:00
percpu.h
perf_event.h perf: Do the big rename: Performance Counters -> Performance Events 2009-09-21 14:28:04 +02:00
perfctr.h sparc64: Kill off old sys_perfctr system call and state. 2010-03-03 08:08:49 -08:00
pgalloc_32.h mm: Pass virtual address to [__]p{te,ud,md}_free_tlb() 2009-07-27 12:10:38 -07:00
pgalloc_64.h
pgalloc.h
pgtable_32.h MM: Pass a PTE pointer to update_mmu_cache() rather than the PTE itself 2010-02-20 16:41:46 +00:00
pgtable_64.h MM: Pass a PTE pointer to update_mmu_cache() rather than the PTE itself 2010-02-20 16:41:46 +00:00
pgtable.h
pgtsrmmu.h sparc,leon: Introduce the sparc-leon CPU type. 2009-08-17 18:32:10 -07:00
pgtsun4.h
pgtsun4c.h
pil.h
poll.h
posix_types.h
processor_32.h
processor_64.h
processor.h
prom.h of: merge of_node_get(), of_node_put() and of_find_all_nodes() 2009-10-15 10:58:02 -06:00
psr.h
psrcompat.h
pstate.h
ptrace.h
resource.h
ross.h
rwsem-const.h
rwsem.h sparc: Replace old style lock initializer 2009-11-07 22:41:03 -08:00
sbi.h
scatterlist.h sparc: use asm-generic/scatterlist.h 2010-02-26 04:33:27 -08:00
scratchpad.h
seccomp.h
sections.h
sembuf.h
serial.h
setup.h
sfafsr.h
sfp-machine_32.h
sfp-machine_64.h
sfp-machine.h
shmbuf.h
shmparam_32.h
shmparam_64.h
shmparam.h
sigcontext.h
siginfo.h
signal.h
smp_32.h sparc,leon: Sparc-Leon SMP support 2009-11-02 04:19:42 -08:00
smp_64.h cpumask: remove arch_send_call_function_ipi 2009-09-24 09:34:47 +09:30
smp.h
smpprim.h
socket.h net: Generalize socket rx gap / receive queue overflow cmsg 2009-10-12 13:26:31 -07:00
sockios.h
sparsemem.h
spinlock_32.h locking: Convert raw_rwlock functions to arch_rwlock 2009-12-14 23:55:32 +01:00
spinlock_64.h locking: Convert raw_rwlock functions to arch_rwlock 2009-12-14 23:55:32 +01:00
spinlock_types.h locking: Convert raw_rwlock to arch_rwlock 2009-12-14 23:55:32 +01:00
spinlock.h
spitfire.h
stacktrace.h
starfire.h
stat.h sparc32: Fix struct stat uid/gid types. 2010-02-21 18:03:16 -08:00
statfs.h
string_32.h sparc: Stop trying to be so fancy and use __builtin_{memcpy,memset}() 2009-12-10 23:32:10 -08:00
string_64.h sparc: Stop trying to be so fancy and use __builtin_{memcpy,memset}() 2009-12-10 23:32:10 -08:00
string.h
sunbpp.h
swab.h
swift.h
syscall.h tracing: Unify arch_syscall_addr() implementations 2010-02-17 13:07:21 +01:00
syscalls.h
sysen.h
system_32.h sparc,leon: Introduce the sparc-leon CPU type. 2009-08-17 18:32:10 -07:00
system_64.h sparc64: Kill off old sys_perfctr system call and state. 2010-03-03 08:08:49 -08:00
system.h
termbits.h
termios.h
thread_info_32.h sched: INIT_PREEMPT_COUNT 2009-07-10 14:24:05 -07:00
thread_info_64.h sparc64: Kill off old sys_perfctr system call and state. 2010-03-03 08:08:49 -08:00
thread_info.h
timer_32.h
timer_64.h
timer.h
timex_32.h sparc: convert to arch_gettimeoffset() 2010-01-15 01:34:28 -08:00
timex_64.h
timex.h
tlb_32.h
tlb_64.h mm: Pass virtual address to [__]p{te,ud,md}_free_tlb() 2009-07-27 12:10:38 -07:00
tlb.h
tlbflush_32.h
tlbflush_64.h
tlbflush.h
topology_32.h
topology_64.h sparc: cpumask_of_node() should handle -1 as a node 2010-01-20 19:04:42 -08:00
topology.h
trap_block.h sparc64: Store per-cpu offset in trap_block[] 2009-06-16 04:56:11 -07:00
traps.h
tsb.h
tsunami.h
ttable.h
turbosparc.h
types.h SPARC: fix duplicate declaration 2009-08-16 18:25:00 -07:00
uaccess_32.h sparc: copy_from_user() should not return -EFAULT 2010-01-05 20:41:48 -08:00
uaccess_64.h sparc: copy_from_user() should not return -EFAULT 2010-01-05 20:41:48 -08:00
uaccess.h
uctx.h
unaligned.h
unistd.h Add generic sys_ipc wrapper 2010-03-12 15:52:32 -08:00
upa.h
user.h
utrap.h
vac-ops.h
vaddrs.h
vga.h
viking.h
vio.h BUILD_BUG_ON(): fix it and a couple of bogus uses of it 2009-09-23 07:39:29 -07:00
visasm.h
watchdog.h
winmacro.h
xor_32.h
xor_64.h
xor.h