Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 148540
b: refs/heads/master
c: 5138700
h: refs/heads/master
v: v3
  • Loading branch information
Philippe Gerum authored and Mike Frysinger committed Jun 12, 2009
1 parent af87674 commit 43deb29
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 13 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: f75196c404246b371182bb7554eab695619cb36f
refs/heads/master: 51387009bd4d9fdbc9d4a91e45bd96cc8e3065de
4 changes: 2 additions & 2 deletions trunk/arch/blackfin/include/asm/ipipe.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@
#include <asm/atomic.h>
#include <asm/traps.h>

#define IPIPE_ARCH_STRING "1.9-00"
#define IPIPE_ARCH_STRING "1.9-01"
#define IPIPE_MAJOR_NUMBER 1
#define IPIPE_MINOR_NUMBER 9
#define IPIPE_PATCH_NUMBER 0
#define IPIPE_PATCH_NUMBER 1

#ifdef CONFIG_SMP
#error "I-pipe/blackfin: SMP not implemented"
Expand Down
9 changes: 6 additions & 3 deletions trunk/arch/blackfin/kernel/ipipe.c
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ int __ipipe_check_root(void)
void __ipipe_enable_irqdesc(struct ipipe_domain *ipd, unsigned irq)
{
struct irq_desc *desc = irq_to_desc(irq);
int prio = desc->ic_prio;
int prio = __ipipe_get_irq_priority(irq);

desc->depth = 0;
if (ipd != &ipipe_root &&
Expand All @@ -178,8 +178,7 @@ EXPORT_SYMBOL(__ipipe_enable_irqdesc);

void __ipipe_disable_irqdesc(struct ipipe_domain *ipd, unsigned irq)
{
struct irq_desc *desc = irq_to_desc(irq);
int prio = desc->ic_prio;
int prio = __ipipe_get_irq_priority(irq);

if (ipd != &ipipe_root &&
atomic_dec_and_test(&__ipipe_irq_lvdepth[prio]))
Expand Down Expand Up @@ -310,12 +309,16 @@ int ipipe_trigger_irq(unsigned irq)

asmlinkage void __ipipe_sync_root(void)
{
void (*irq_tail_hook)(void) = (void (*)(void))__ipipe_irq_tail_hook;
unsigned long flags;

BUG_ON(irqs_disabled());

local_irq_save_hw(flags);

if (irq_tail_hook)
irq_tail_hook();

clear_thread_flag(TIF_IRQ_SYNC);

if (ipipe_root_cpudom_var(irqpend_himask) != 0)
Expand Down
7 changes: 0 additions & 7 deletions trunk/arch/blackfin/mach-common/ints-priority.c
Original file line number Diff line number Diff line change
Expand Up @@ -1139,13 +1139,6 @@ int __init init_arch_irq(void)
bfin_write_SIC_IWR(IWR_DISABLE_ALL);
#endif

#ifdef CONFIG_IPIPE
for (irq = 0; irq < NR_IRQS; irq++) {
struct irq_desc *desc = irq_to_desc(irq);
desc->ic_prio = __ipipe_get_irq_priority(irq);
}
#endif /* CONFIG_IPIPE */

return 0;
}

Expand Down

0 comments on commit 43deb29

Please sign in to comment.