Release 4.14 arch/sparc/include/asm/irqflags_32.h
/* SPDX-License-Identifier: GPL-2.0 */
/*
* include/asm/irqflags.h
*
* IRQ flags handling
*
* This file gets included from lowlevel asm headers too, to provide
* wrapped versions of the local_irq_*() APIs, based on the
* arch_local_irq_*() functions from the lowlevel headers.
*/
#ifndef _ASM_IRQFLAGS_H
#define _ASM_IRQFLAGS_H
#ifndef __ASSEMBLY__
#include <linux/types.h>
#include <asm/psr.h>
void arch_local_irq_restore(unsigned long);
unsigned long arch_local_irq_save(void);
void arch_local_irq_enable(void);
static inline notrace unsigned long arch_local_save_flags(void)
{
unsigned long flags;
asm volatile("rd %%psr, %0" : "=r" (flags));
return flags;
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Sam Ravnborg | 14 | 66.67% | 1 | 33.33% |
David Howells | 6 | 28.57% | 1 | 33.33% |
Steven Rostedt | 1 | 4.76% | 1 | 33.33% |
Total | 21 | 100.00% | 3 | 100.00% |
static inline notrace void arch_local_irq_disable(void)
{
arch_local_irq_save();
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
David Howells | 10 | 76.92% | 1 | 33.33% |
Sam Ravnborg | 2 | 15.38% | 1 | 33.33% |
Steven Rostedt | 1 | 7.69% | 1 | 33.33% |
Total | 13 | 100.00% | 3 | 100.00% |
static inline notrace bool arch_irqs_disabled_flags(unsigned long flags)
{
return (flags & PSR_PIL) != 0;
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Sam Ravnborg | 16 | 76.19% | 1 | 33.33% |
David Howells | 4 | 19.05% | 1 | 33.33% |
Steven Rostedt | 1 | 4.76% | 1 | 33.33% |
Total | 21 | 100.00% | 3 | 100.00% |
static inline notrace bool arch_irqs_disabled(void)
{
return arch_irqs_disabled_flags(arch_local_save_flags());
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
David Howells | 14 | 82.35% | 1 | 33.33% |
Sam Ravnborg | 2 | 11.76% | 1 | 33.33% |
Steven Rostedt | 1 | 5.88% | 1 | 33.33% |
Total | 17 | 100.00% | 3 | 100.00% |
#endif /* (__ASSEMBLY__) */
#endif /* !(_ASM_IRQFLAGS_H) */
Overall Contributors
Person | Tokens | Prop | Commits | CommitProp |
Sam Ravnborg | 66 | 57.39% | 1 | 20.00% |
David Howells | 44 | 38.26% | 2 | 40.00% |
Steven Rostedt | 4 | 3.48% | 1 | 20.00% |
Greg Kroah-Hartman | 1 | 0.87% | 1 | 20.00% |
Total | 115 | 100.00% | 5 | 100.00% |
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.