mirror of
https://github.com/torvalds/linux.git
synced 2026-09-21 02:13:52 -04:00
Merge branch 'from-linus' into bcm43xx
This commit is contained in:
@@ -91,7 +91,6 @@
|
||||
#define NR_IRQS NR_IOP331_IRQS
|
||||
|
||||
|
||||
#if defined(CONFIG_ARCH_IQ80331)
|
||||
/*
|
||||
* Interrupts available on the IQ80331 board
|
||||
*/
|
||||
@@ -111,7 +110,6 @@
|
||||
#define IRQ_IQ80331_INTC IRQ_IOP331_XINT2
|
||||
#define IRQ_IQ80331_INTD IRQ_IOP331_XINT3
|
||||
|
||||
#elif defined(CONFIG_MACH_IQ80332)
|
||||
/*
|
||||
* Interrupts available on the IQ80332 board
|
||||
*/
|
||||
@@ -131,6 +129,4 @@
|
||||
#define IRQ_IQ80332_INTC IRQ_IOP331_XINT2
|
||||
#define IRQ_IQ80332_INTD IRQ_IOP331_XINT3
|
||||
|
||||
#endif
|
||||
|
||||
#endif // _IOP331_IRQ_H_
|
||||
|
||||
@@ -45,6 +45,7 @@ typedef u8 kprobe_opcode_t;
|
||||
#define JPROBE_ENTRY(pentry) (kprobe_opcode_t *)pentry
|
||||
#define ARCH_SUPPORTS_KRETPROBES
|
||||
#define ARCH_INACTIVE_KPROBE_COUNT 0
|
||||
#define flush_insn_slot(p) do { } while (0)
|
||||
|
||||
void arch_remove_kprobe(struct kprobe *p);
|
||||
void kretprobe_trampoline(void);
|
||||
|
||||
@@ -125,5 +125,6 @@ static inline void jprobe_return(void)
|
||||
}
|
||||
extern void invalidate_stacked_regs(void);
|
||||
extern void flush_register_stack(void);
|
||||
extern void flush_insn_slot(struct kprobe *p);
|
||||
|
||||
#endif /* _ASM_KPROBES_H */
|
||||
|
||||
@@ -30,8 +30,12 @@ static inline void pmac_backlight_key_down(void)
|
||||
pmac_backlight_key(1);
|
||||
}
|
||||
|
||||
extern void pmac_backlight_set_legacy_brightness_pmu(int brightness);
|
||||
extern int pmac_backlight_set_legacy_brightness(int brightness);
|
||||
extern int pmac_backlight_get_legacy_brightness(void);
|
||||
|
||||
extern void pmac_backlight_enable(void);
|
||||
extern void pmac_backlight_disable(void);
|
||||
|
||||
#endif /* __KERNEL__ */
|
||||
#endif
|
||||
|
||||
@@ -51,6 +51,7 @@ typedef unsigned int kprobe_opcode_t;
|
||||
|
||||
#define ARCH_SUPPORTS_KRETPROBES
|
||||
#define ARCH_INACTIVE_KPROBE_COUNT 1
|
||||
#define flush_insn_slot(p) do { } while (0)
|
||||
|
||||
void kretprobe_trampoline(void);
|
||||
extern void arch_remove_kprobe(struct kprobe *p);
|
||||
|
||||
@@ -13,6 +13,7 @@ typedef u32 kprobe_opcode_t;
|
||||
#define JPROBE_ENTRY(pentry) (kprobe_opcode_t *)pentry
|
||||
#define arch_remove_kprobe(p) do {} while (0)
|
||||
#define ARCH_INACTIVE_KPROBE_COUNT 0
|
||||
#define flush_insn_slot(p) do { } while (0)
|
||||
|
||||
/* Architecture specific copy of original instruction*/
|
||||
struct arch_specific_insn {
|
||||
|
||||
@@ -339,7 +339,7 @@ static inline pgprot_t pgprot_noncached(pgprot_t prot)
|
||||
" .section .sun4v_2insn_patch, \"ax\"\n"
|
||||
" .word 661b\n"
|
||||
" andn %0, %4, %0\n"
|
||||
" or %0, %3, %0\n"
|
||||
" or %0, %5, %0\n"
|
||||
" .previous\n"
|
||||
: "=r" (val)
|
||||
: "0" (val), "i" (_PAGE_CP_4U | _PAGE_CV_4U), "i" (_PAGE_E_4U),
|
||||
|
||||
@@ -34,7 +34,7 @@
|
||||
#define _FP_MUL_MEAT_D(R,X,Y) \
|
||||
_FP_MUL_MEAT_1_wide(_FP_WFRACBITS_D,R,X,Y,umul_ppmm)
|
||||
#define _FP_MUL_MEAT_Q(R,X,Y) \
|
||||
_FP_MUL_MEAT_2_wide_3mul(_FP_WFRACBITS_Q,R,X,Y,umul_ppmm)
|
||||
_FP_MUL_MEAT_2_wide(_FP_WFRACBITS_Q,R,X,Y,umul_ppmm)
|
||||
|
||||
#define _FP_DIV_MEAT_S(R,X,Y) _FP_DIV_MEAT_1_imm(S,R,X,Y,_FP_DIV_HELP_imm)
|
||||
#define _FP_DIV_MEAT_D(R,X,Y) _FP_DIV_MEAT_1_udiv_norm(D,R,X,Y)
|
||||
|
||||
@@ -60,9 +60,4 @@ static inline int calgary_iommu_init(void) { return 1; }
|
||||
static inline void detect_calgary(void) { return; }
|
||||
#endif
|
||||
|
||||
static inline unsigned int bus_to_phb(unsigned char busno)
|
||||
{
|
||||
return ((busno % 15 == 0) ? 0 : busno / 2 + 1);
|
||||
}
|
||||
|
||||
#endif /* _ASM_X86_64_CALGARY_H */
|
||||
|
||||
@@ -47,6 +47,7 @@ typedef u8 kprobe_opcode_t;
|
||||
|
||||
void kretprobe_trampoline(void);
|
||||
extern void arch_remove_kprobe(struct kprobe *p);
|
||||
#define flush_insn_slot(p) do { } while (0)
|
||||
|
||||
/* Architecture specific copy of original instruction*/
|
||||
struct arch_specific_insn {
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
#define EXCEPTION_STACK_ORDER 0
|
||||
#define EXCEPTION_STKSZ (PAGE_SIZE << EXCEPTION_STACK_ORDER)
|
||||
|
||||
#define DEBUG_STACK_ORDER EXCEPTION_STACK_ORDER
|
||||
#define DEBUG_STACK_ORDER (EXCEPTION_STACK_ORDER + 1)
|
||||
#define DEBUG_STKSZ (PAGE_SIZE << DEBUG_STACK_ORDER)
|
||||
|
||||
#define IRQSTACK_ORDER 2
|
||||
|
||||
@@ -42,6 +42,8 @@ extern void swiotlb_free_coherent (struct device *hwdev, size_t size,
|
||||
extern int swiotlb_dma_supported(struct device *hwdev, u64 mask);
|
||||
extern void swiotlb_init(void);
|
||||
|
||||
extern int swiotlb_force;
|
||||
|
||||
#ifdef CONFIG_SWIOTLB
|
||||
extern int swiotlb;
|
||||
#else
|
||||
|
||||
@@ -57,7 +57,8 @@ struct proc_event {
|
||||
PROC_EVENT_EXIT = 0x80000000
|
||||
} what;
|
||||
__u32 cpu;
|
||||
struct timespec timestamp;
|
||||
__u64 __attribute__((aligned(8))) timestamp_ns;
|
||||
/* Number of nano seconds since system boot */
|
||||
union { /* must be last field of proc_event struct */
|
||||
struct {
|
||||
__u32 err;
|
||||
|
||||
@@ -55,7 +55,7 @@ static inline void delayacct_tsk_init(struct task_struct *tsk)
|
||||
{
|
||||
/* reinitialize in case parent's non-null pointer was dup'ed*/
|
||||
tsk->delays = NULL;
|
||||
if (unlikely(delayacct_on))
|
||||
if (delayacct_on)
|
||||
__delayacct_tsk_init(tsk);
|
||||
}
|
||||
|
||||
@@ -80,9 +80,7 @@ static inline void delayacct_blkio_end(void)
|
||||
static inline int delayacct_add_tsk(struct taskstats *d,
|
||||
struct task_struct *tsk)
|
||||
{
|
||||
if (likely(!delayacct_on))
|
||||
return -EINVAL;
|
||||
if (!tsk->delays)
|
||||
if (!delayacct_on || !tsk->delays)
|
||||
return 0;
|
||||
return __delayacct_add_tsk(d, tsk);
|
||||
}
|
||||
|
||||
@@ -492,6 +492,15 @@ static inline struct ext3_inode_info *EXT3_I(struct inode *inode)
|
||||
{
|
||||
return container_of(inode, struct ext3_inode_info, vfs_inode);
|
||||
}
|
||||
|
||||
static inline int ext3_valid_inum(struct super_block *sb, unsigned long ino)
|
||||
{
|
||||
return ino == EXT3_ROOT_INO ||
|
||||
ino == EXT3_JOURNAL_INO ||
|
||||
ino == EXT3_RESIZE_INO ||
|
||||
(ino >= EXT3_FIRST_INO(sb) &&
|
||||
ino <= le32_to_cpu(EXT3_SB(sb)->s_es->s_inodes_count));
|
||||
}
|
||||
#else
|
||||
/* Assume that user mode programs are passing in an ext3fs superblock, not
|
||||
* a kernel struct super_block. This will allow us to call the feature-test
|
||||
|
||||
@@ -524,7 +524,7 @@ struct fb_event {
|
||||
|
||||
extern int fb_register_client(struct notifier_block *nb);
|
||||
extern int fb_unregister_client(struct notifier_block *nb);
|
||||
|
||||
extern int fb_notifier_call_chain(unsigned long val, void *v);
|
||||
/*
|
||||
* Pixmap structure definition
|
||||
*
|
||||
|
||||
@@ -96,7 +96,8 @@ struct robust_list_head {
|
||||
long do_futex(u32 __user *uaddr, int op, u32 val, unsigned long timeout,
|
||||
u32 __user *uaddr2, u32 val2, u32 val3);
|
||||
|
||||
extern int handle_futex_death(u32 __user *uaddr, struct task_struct *curr);
|
||||
extern int
|
||||
handle_futex_death(u32 __user *uaddr, struct task_struct *curr, int pi);
|
||||
|
||||
#ifdef CONFIG_FUTEX
|
||||
extern void exit_robust_list(struct task_struct *curr);
|
||||
|
||||
@@ -571,6 +571,7 @@ typedef struct ide_drive_s {
|
||||
u8 waiting_for_dma; /* dma currently in progress */
|
||||
u8 unmask; /* okay to unmask other irqs */
|
||||
u8 bswap; /* byte swap data */
|
||||
u8 noflush; /* don't attempt flushes */
|
||||
u8 dsc_overlap; /* DSC overlap */
|
||||
u8 nice1; /* give potential excess bandwidth */
|
||||
|
||||
|
||||
@@ -47,8 +47,8 @@
|
||||
#define IRQ_WAITING 0x00200000 /* IRQ not yet seen - for autodetection */
|
||||
#define IRQ_LEVEL 0x00400000 /* IRQ level triggered */
|
||||
#define IRQ_MASKED 0x00800000 /* IRQ masked - shouldn't be seen again */
|
||||
#define IRQ_PER_CPU 0x01000000 /* IRQ is per CPU */
|
||||
#ifdef CONFIG_IRQ_PER_CPU
|
||||
# define IRQ_PER_CPU 0x01000000 /* IRQ is per CPU */
|
||||
# define CHECK_IRQ_PER_CPU(var) ((var) & IRQ_PER_CPU)
|
||||
#else
|
||||
# define CHECK_IRQ_PER_CPU(var) 0
|
||||
@@ -58,6 +58,7 @@
|
||||
#define IRQ_NOREQUEST 0x04000000 /* IRQ cannot be requested */
|
||||
#define IRQ_NOAUTOEN 0x08000000 /* IRQ will not be enabled on request irq */
|
||||
#define IRQ_DELAYED_DISABLE 0x10000000 /* IRQ disable (masking) happens delayed. */
|
||||
#define IRQ_WAKEUP 0x20000000 /* IRQ triggers system wakeup */
|
||||
|
||||
struct proc_dir_entry;
|
||||
|
||||
@@ -124,6 +125,7 @@ struct irq_chip {
|
||||
* @action: the irq action chain
|
||||
* @status: status information
|
||||
* @depth: disable-depth, for nested irq_disable() calls
|
||||
* @wake_depth: enable depth, for multiple set_irq_wake() callers
|
||||
* @irq_count: stats field to detect stalled irqs
|
||||
* @irqs_unhandled: stats field for spurious unhandled interrupts
|
||||
* @lock: locking for SMP
|
||||
@@ -147,6 +149,7 @@ struct irq_desc {
|
||||
unsigned int status; /* IRQ status */
|
||||
|
||||
unsigned int depth; /* nested irq disables */
|
||||
unsigned int wake_depth; /* nested wake enables */
|
||||
unsigned int irq_count; /* For detecting broken IRQs */
|
||||
unsigned int irqs_unhandled;
|
||||
spinlock_t lock;
|
||||
|
||||
@@ -47,8 +47,8 @@
|
||||
* - (NOM / DEN) fits in (32 - LSH) bits.
|
||||
* - (NOM % DEN) fits in (32 - LSH) bits.
|
||||
*/
|
||||
#define SH_DIV(NOM,DEN,LSH) ( ((NOM / DEN) << LSH) \
|
||||
+ (((NOM % DEN) << LSH) + DEN / 2) / DEN)
|
||||
#define SH_DIV(NOM,DEN,LSH) ( (((NOM) / (DEN)) << (LSH)) \
|
||||
+ ((((NOM) % (DEN)) << (LSH)) + (DEN) / 2) / (DEN))
|
||||
|
||||
/* HZ is the requested value. ACTHZ is actual HZ ("<< 8" is for accuracy) */
|
||||
#define ACTHZ (SH_DIV (CLOCK_TICK_RATE, LATCH, 8))
|
||||
|
||||
@@ -265,12 +265,14 @@ enum {
|
||||
|
||||
/* ata_eh_info->flags */
|
||||
ATA_EHI_HOTPLUGGED = (1 << 0), /* could have been hotplugged */
|
||||
ATA_EHI_RESUME_LINK = (1 << 1), /* need to resume link */
|
||||
ATA_EHI_RESUME_LINK = (1 << 1), /* resume link (reset modifier) */
|
||||
ATA_EHI_NO_AUTOPSY = (1 << 2), /* no autopsy */
|
||||
ATA_EHI_QUIET = (1 << 3), /* be quiet */
|
||||
|
||||
ATA_EHI_DID_RESET = (1 << 16), /* already reset this port */
|
||||
|
||||
ATA_EHI_RESET_MODIFIER_MASK = ATA_EHI_RESUME_LINK,
|
||||
|
||||
/* max repeat if error condition is still set after ->error_handler */
|
||||
ATA_EH_MAX_REPEAT = 5,
|
||||
|
||||
|
||||
@@ -231,7 +231,6 @@ extern struct pmu_battery_info pmu_batteries[PMU_MAX_BATTERIES];
|
||||
extern unsigned int pmu_power_flags;
|
||||
|
||||
/* Backlight */
|
||||
extern int disable_kernel_backlight;
|
||||
extern void pmu_backlight_init(struct device_node*);
|
||||
extern void pmu_backlight_init(void);
|
||||
|
||||
#endif /* __KERNEL__ */
|
||||
|
||||
Reference in New Issue
Block a user