mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
Merge with Linus' kernel.
This commit is contained in:
commit
123656d4cc
2145 changed files with 159776 additions and 65186 deletions
18
include/asm-arm/arch-pxa/ohci.h
Normal file
18
include/asm-arm/arch-pxa/ohci.h
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
#ifndef ASMARM_ARCH_OHCI_H
|
||||
#define ASMARM_ARCH_OHCI_H
|
||||
|
||||
struct device;
|
||||
|
||||
struct pxaohci_platform_data {
|
||||
int (*init)(struct device *);
|
||||
void (*exit)(struct device *);
|
||||
|
||||
int port_mode;
|
||||
#define PMM_NPS_MODE 1
|
||||
#define PMM_GLOBAL_MODE 2
|
||||
#define PMM_PERPORT_MODE 3
|
||||
};
|
||||
|
||||
extern void pxa_set_ohci_info(struct pxaohci_platform_data *info);
|
||||
|
||||
#endif
|
||||
|
|
@ -205,5 +205,6 @@ static inline int atomic_add_unless(atomic_t *v, int a, int u)
|
|||
#define smp_mb__before_atomic_inc() barrier()
|
||||
#define smp_mb__after_atomic_inc() barrier()
|
||||
|
||||
#include <asm-generic/atomic.h>
|
||||
#endif
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -332,6 +332,7 @@ static inline unsigned long __ffs(unsigned long word)
|
|||
*/
|
||||
|
||||
#define fls(x) generic_fls(x)
|
||||
#define fls64(x) generic_fls64(x)
|
||||
|
||||
/*
|
||||
* ffs: find first bit set. This is defined the same way as
|
||||
|
|
@ -351,6 +352,7 @@ static inline unsigned long __ffs(unsigned long word)
|
|||
#define fls(x) \
|
||||
( __builtin_constant_p(x) ? generic_fls(x) : \
|
||||
({ int __r; asm("clz\t%0, %1" : "=r"(__r) : "r"(x) : "cc"); 32-__r; }) )
|
||||
#define fls64(x) generic_fls64(x)
|
||||
#define ffs(x) ({ unsigned long __t = (x); fls(__t & -__t); })
|
||||
#define __ffs(x) (ffs(x) - 1)
|
||||
#define ffz(x) __ffs( ~(x) )
|
||||
|
|
|
|||
|
|
@ -35,6 +35,7 @@
|
|||
#define MADV_SEQUENTIAL 0x2 /* read-ahead aggressively */
|
||||
#define MADV_WILLNEED 0x3 /* pre-fault pages */
|
||||
#define MADV_DONTNEED 0x4 /* discard these pages */
|
||||
#define MADV_REMOVE 0x5 /* remove these pages & resources */
|
||||
|
||||
/* compatibility flags */
|
||||
#define MAP_ANON MAP_ANONYMOUS
|
||||
|
|
|
|||
Loading…
Reference in a new issue