Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/arnd/asm-generic
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/arnd/asm-generic: add generic lib/checksum.c asm-generic: add a generic uaccess.h asm-generic: add generic NOMMU versions of some headers asm-generic: add generic atomic.h and io.h asm-generic: add legacy I/O header files asm-generic: add generic versions of common headers asm-generic: make bitops.h usable asm-generic: make pci.h usable directly asm-generic: make get_rtc_time overridable asm-generic: rename page.h and uaccess.h asm-generic: rename atomic.h to atomic-long.h asm-generic: add a generic unistd.h asm-generic: add generic ABI headers asm-generic: add generic sysv ipc headers asm-generic: introduce asm/bitsperlong.h asm-generic: rename termios.h, signal.h and mman.h
This commit is contained in:
@@ -472,6 +472,6 @@ static __inline__ int atomic64_add_unless(atomic64_t *v, long a, long u)
|
||||
|
||||
#endif /* __powerpc64__ */
|
||||
|
||||
#include <asm-generic/atomic.h>
|
||||
#include <asm-generic/atomic-long.h>
|
||||
#endif /* __KERNEL__ */
|
||||
#endif /* _ASM_POWERPC_ATOMIC_H_ */
|
||||
|
12
arch/powerpc/include/asm/bitsperlong.h
Normal file
12
arch/powerpc/include/asm/bitsperlong.h
Normal file
@@ -0,0 +1,12 @@
|
||||
#ifndef __ASM_POWERPC_BITSPERLONG_H
|
||||
#define __ASM_POWERPC_BITSPERLONG_H
|
||||
|
||||
#if defined(__powerpc64__)
|
||||
# define __BITS_PER_LONG 64
|
||||
#else
|
||||
# define __BITS_PER_LONG 32
|
||||
#endif
|
||||
|
||||
#include <asm-generic/bitsperlong.h>
|
||||
|
||||
#endif /* __ASM_POWERPC_BITSPERLONG_H */
|
@@ -1,7 +1,7 @@
|
||||
#ifndef _ASM_POWERPC_MMAN_H
|
||||
#define _ASM_POWERPC_MMAN_H
|
||||
|
||||
#include <asm-generic/mman.h>
|
||||
#include <asm-generic/mman-common.h>
|
||||
|
||||
/*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
|
@@ -41,7 +41,7 @@ extern void clear_pages(void *page, int order);
|
||||
static inline void clear_page(void *page) { clear_pages(page, 0); }
|
||||
extern void copy_page(void *to, void *from);
|
||||
|
||||
#include <asm-generic/page.h>
|
||||
#include <asm-generic/getorder.h>
|
||||
|
||||
#define PGD_T_LOG2 (__builtin_ffs(sizeof(pgd_t)) - 1)
|
||||
#define PTE_T_LOG2 (__builtin_ffs(sizeof(pte_t)) - 1)
|
||||
|
@@ -180,6 +180,6 @@ do { \
|
||||
(test_thread_flag(TIF_32BIT) ? \
|
||||
VM_STACK_DEFAULT_FLAGS32 : VM_STACK_DEFAULT_FLAGS64)
|
||||
|
||||
#include <asm-generic/page.h>
|
||||
#include <asm-generic/getorder.h>
|
||||
|
||||
#endif /* _ASM_POWERPC_PAGE_64_H */
|
||||
|
@@ -94,7 +94,7 @@ typedef struct {
|
||||
#define MINSIGSTKSZ 2048
|
||||
#define SIGSTKSZ 8192
|
||||
|
||||
#include <asm-generic/signal.h>
|
||||
#include <asm-generic/signal-defs.h>
|
||||
|
||||
struct old_sigaction {
|
||||
__sighandler_t sa_handler;
|
||||
|
@@ -78,7 +78,7 @@ struct termio {
|
||||
|
||||
#ifdef __KERNEL__
|
||||
|
||||
#include <asm-generic/termios.h>
|
||||
#include <asm-generic/termios-base.h>
|
||||
|
||||
#endif /* __KERNEL__ */
|
||||
|
||||
|
@@ -40,15 +40,6 @@ typedef struct {
|
||||
#endif /* __ASSEMBLY__ */
|
||||
|
||||
#ifdef __KERNEL__
|
||||
/*
|
||||
* These aren't exported outside the kernel to avoid name space clashes
|
||||
*/
|
||||
#ifdef __powerpc64__
|
||||
#define BITS_PER_LONG 64
|
||||
#else
|
||||
#define BITS_PER_LONG 32
|
||||
#endif
|
||||
|
||||
#ifndef __ASSEMBLY__
|
||||
|
||||
typedef __vector128 vector128;
|
||||
|
Reference in New Issue
Block a user