forked from Minki/linux
Blackfin: fix misnomer of some I-pipe helpers
__ipipe_{stall, unstall}_root_raw() identifiers may leave the reader under the impression that only the virtual state is affected by these operations, which is wrong. Pick names following the convention used throughout the interrupt pipeline code. Signed-off-by: Philippe Gerum <rpm@xenomai.org> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
This commit is contained in:
parent
d8ca63955a
commit
b9c7eb498d
@ -145,10 +145,6 @@ void __ipipe_handle_irq(unsigned irq, struct pt_regs *regs);
|
|||||||
|
|
||||||
int __ipipe_get_irq_priority(unsigned irq);
|
int __ipipe_get_irq_priority(unsigned irq);
|
||||||
|
|
||||||
void __ipipe_stall_root_raw(void);
|
|
||||||
|
|
||||||
void __ipipe_unstall_root_raw(void);
|
|
||||||
|
|
||||||
void __ipipe_serial_debug(const char *fmt, ...);
|
void __ipipe_serial_debug(const char *fmt, ...);
|
||||||
|
|
||||||
asmlinkage void __ipipe_call_irqtail(unsigned long addr);
|
asmlinkage void __ipipe_call_irqtail(unsigned long addr);
|
||||||
@ -234,9 +230,6 @@ int ipipe_start_irq_thread(unsigned irq, struct irq_desc *desc);
|
|||||||
#define task_hijacked(p) 0
|
#define task_hijacked(p) 0
|
||||||
#define ipipe_trap_notify(t, r) 0
|
#define ipipe_trap_notify(t, r) 0
|
||||||
|
|
||||||
#define __ipipe_stall_root_raw() do { } while (0)
|
|
||||||
#define __ipipe_unstall_root_raw() do { } while (0)
|
|
||||||
|
|
||||||
#define ipipe_init_irq_threads() do { } while (0)
|
#define ipipe_init_irq_threads() do { } while (0)
|
||||||
#define ipipe_start_irq_thread(irq, desc) 0
|
#define ipipe_start_irq_thread(irq, desc) 0
|
||||||
|
|
||||||
|
@ -191,30 +191,6 @@ void __ipipe_disable_irqdesc(struct ipipe_domain *ipd, unsigned irq)
|
|||||||
}
|
}
|
||||||
EXPORT_SYMBOL(__ipipe_disable_irqdesc);
|
EXPORT_SYMBOL(__ipipe_disable_irqdesc);
|
||||||
|
|
||||||
void __ipipe_stall_root_raw(void)
|
|
||||||
{
|
|
||||||
/*
|
|
||||||
* This code is called by the ins{bwl} routines (see
|
|
||||||
* arch/blackfin/lib/ins.S), which are heavily used by the
|
|
||||||
* network stack. It masks all interrupts but those handled by
|
|
||||||
* non-root domains, so that we keep decent network transfer
|
|
||||||
* rates for Linux without inducing pathological jitter for
|
|
||||||
* the real-time domain.
|
|
||||||
*/
|
|
||||||
__asm__ __volatile__ ("sti %0;" : : "d"(__ipipe_irq_lvmask));
|
|
||||||
|
|
||||||
__set_bit(IPIPE_STALL_FLAG,
|
|
||||||
&ipipe_root_cpudom_var(status));
|
|
||||||
}
|
|
||||||
|
|
||||||
void __ipipe_unstall_root_raw(void)
|
|
||||||
{
|
|
||||||
__clear_bit(IPIPE_STALL_FLAG,
|
|
||||||
&ipipe_root_cpudom_var(status));
|
|
||||||
|
|
||||||
__asm__ __volatile__ ("sti %0;" : : "d"(bfin_irq_flags));
|
|
||||||
}
|
|
||||||
|
|
||||||
int __ipipe_syscall_root(struct pt_regs *regs)
|
int __ipipe_syscall_root(struct pt_regs *regs)
|
||||||
{
|
{
|
||||||
struct ipipe_percpu_domain_data *p;
|
struct ipipe_percpu_domain_data *p;
|
||||||
@ -344,3 +320,23 @@ void ___ipipe_sync_pipeline(unsigned long syncmask)
|
|||||||
|
|
||||||
__ipipe_sync_stage(syncmask);
|
__ipipe_sync_stage(syncmask);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void __ipipe_disable_root_irqs_hw(void)
|
||||||
|
{
|
||||||
|
/*
|
||||||
|
* This code is called by the ins{bwl} routines (see
|
||||||
|
* arch/blackfin/lib/ins.S), which are heavily used by the
|
||||||
|
* network stack. It masks all interrupts but those handled by
|
||||||
|
* non-root domains, so that we keep decent network transfer
|
||||||
|
* rates for Linux without inducing pathological jitter for
|
||||||
|
* the real-time domain.
|
||||||
|
*/
|
||||||
|
bfin_sti(__ipipe_irq_lvmask);
|
||||||
|
__set_bit(IPIPE_STALL_FLAG, &ipipe_root_cpudom_var(status));
|
||||||
|
}
|
||||||
|
|
||||||
|
void __ipipe_enable_root_irqs_hw(void)
|
||||||
|
{
|
||||||
|
__clear_bit(IPIPE_STALL_FLAG, &ipipe_root_cpudom_var(status));
|
||||||
|
bfin_sti(bfin_irq_flags);
|
||||||
|
}
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
[--sp] = rets; \
|
[--sp] = rets; \
|
||||||
[--sp] = (P5:0); \
|
[--sp] = (P5:0); \
|
||||||
sp += -12; \
|
sp += -12; \
|
||||||
call ___ipipe_stall_root_raw; \
|
call ___ipipe_disable_root_irqs_hw; \
|
||||||
sp += 12; \
|
sp += 12; \
|
||||||
(P5:0) = [sp++];
|
(P5:0) = [sp++];
|
||||||
# define CLI_INNER_NOP
|
# define CLI_INNER_NOP
|
||||||
@ -28,7 +28,7 @@
|
|||||||
#ifdef CONFIG_IPIPE
|
#ifdef CONFIG_IPIPE
|
||||||
# define DO_STI \
|
# define DO_STI \
|
||||||
sp += -12; \
|
sp += -12; \
|
||||||
call ___ipipe_unstall_root_raw; \
|
call ___ipipe_enable_root_irqs_hw; \
|
||||||
sp += 12; \
|
sp += 12; \
|
||||||
2: rets = [sp++];
|
2: rets = [sp++];
|
||||||
#else
|
#else
|
||||||
|
Loading…
Reference in New Issue
Block a user