Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 124979
b: refs/heads/master
c: 43a2563
h: refs/heads/master
i:
  124977: d11089e
  124975: 08926d4
v: v3
  • Loading branch information
Yinghai Lu authored and Ingo Molnar committed Dec 29, 2008
1 parent a1f7271 commit 7c55347
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 23 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b2e2fe99628c4f944c3075258e536197b5a4f3f8
refs/heads/master: 43a256322ac1fc105c181b3cade3b9bfc0b63ca1
6 changes: 6 additions & 0 deletions trunk/include/linux/interrupt.h
Original file line number Diff line number Diff line change
Expand Up @@ -467,4 +467,10 @@ static inline void init_irq_proc(void)

int show_interrupts(struct seq_file *p, void *v);

struct irq_desc;

extern int early_irq_init(void);
extern int arch_early_irq_init(void);
extern int arch_init_chip_data(struct irq_desc *desc, int cpu);

#endif
3 changes: 0 additions & 3 deletions trunk/include/linux/irq.h
Original file line number Diff line number Diff line change
Expand Up @@ -193,9 +193,6 @@ struct irq_desc {
const char *name;
} ____cacheline_internodealigned_in_smp;

extern int early_irq_init(void);
extern int arch_early_irq_init(void);
extern int arch_init_chip_data(struct irq_desc *desc, int cpu);
extern void arch_init_copy_chip_data(struct irq_desc *old_desc,
struct irq_desc *desc, int cpu);
extern void arch_free_chip_data(struct irq_desc *old_desc, struct irq_desc *desc);
Expand Down
10 changes: 0 additions & 10 deletions trunk/init/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -539,16 +539,6 @@ void __init __weak thread_info_cache_init(void)
{
}

int __init __weak arch_early_irq_init(void)
{
return 0;
}

int __init __weak early_irq_init(void)
{
return arch_early_irq_init();
}

asmlinkage void __init start_kernel(void)
{
char * command_line;
Expand Down
9 changes: 0 additions & 9 deletions trunk/kernel/irq/manage.c
Original file line number Diff line number Diff line change
Expand Up @@ -261,15 +261,6 @@ void enable_irq(unsigned int irq)
}
EXPORT_SYMBOL(enable_irq);

/*
* [ Not in kernel/irq/handle.c, so that GCC does not
* inline the __weak alias: ]
*/
int __weak arch_init_chip_data(struct irq_desc *desc, int cpu)
{
return 0;
}

static int set_irq_wake_real(unsigned int irq, unsigned int on)
{
struct irq_desc *desc = irq_to_desc(irq);
Expand Down
20 changes: 20 additions & 0 deletions trunk/kernel/softirq.c
Original file line number Diff line number Diff line change
Expand Up @@ -797,3 +797,23 @@ int on_each_cpu(void (*func) (void *info), void *info, int wait)
}
EXPORT_SYMBOL(on_each_cpu);
#endif

/*
* [ These __weak aliases are kept in a separate compilation unit, so that
* GCC does not inline them incorrectly. ]
*/

int __init __weak early_irq_init(void)
{
return 0;
}

int __init __weak arch_early_irq_init(void)
{
return 0;
}

int __weak arch_init_chip_data(struct irq_desc *desc, int cpu)
{
return 0;
}

0 comments on commit 7c55347

Please sign in to comment.