Release 4.14 arch/s390/include/asm/irqflags.h
/* SPDX-License-Identifier: GPL-2.0 */
/*
* Copyright IBM Corp. 2006, 2010
* Author(s): Martin Schwidefsky <schwidefsky@de.ibm.com>
*/
#ifndef __ASM_IRQFLAGS_H
#define __ASM_IRQFLAGS_H
#include <linux/types.h>
#define ARCH_IRQ_ENABLED (3UL << (BITS_PER_LONG - 8))
/* store then OR system mask. */
#define __arch_local_irq_stosm(__or) \
({ \
unsigned long __mask; \
asm volatile( \
" stosm %0,%1" \
: "=Q" (__mask) : "i" (__or) : "memory"); \
__mask; \
})
/* store then AND system mask. */
#define __arch_local_irq_stnsm(__and) \
({ \
unsigned long __mask; \
asm volatile( \
" stnsm %0,%1" \
: "=Q" (__mask) : "i" (__and) : "memory"); \
__mask; \
})
/* set system mask. */
static inline notrace void __arch_local_irq_ssm(unsigned long flags)
{
asm volatile("ssm %0" : : "Q" (flags) : "memory");
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
David Howells | 12 | 80.00% | 1 | 25.00% |
Heiko Carstens | 1 | 6.67% | 1 | 25.00% |
Martin Schwidefsky | 1 | 6.67% | 1 | 25.00% |
Steven Rostedt | 1 | 6.67% | 1 | 25.00% |
Total | 15 | 100.00% | 4 | 100.00% |
static inline notrace unsigned long arch_local_save_flags(void)
{
return __arch_local_irq_stnsm(0xff);
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Martin Schwidefsky | 13 | 76.47% | 1 | 25.00% |
Christian Bornträger | 2 | 11.76% | 1 | 25.00% |
David Howells | 1 | 5.88% | 1 | 25.00% |
Steven Rostedt | 1 | 5.88% | 1 | 25.00% |
Total | 17 | 100.00% | 4 | 100.00% |
static inline notrace unsigned long arch_local_irq_save(void)
{
return __arch_local_irq_stnsm(0xfc);
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Martin Schwidefsky | 14 | 82.35% | 1 | 33.33% |
David Howells | 2 | 11.76% | 1 | 33.33% |
Steven Rostedt | 1 | 5.88% | 1 | 33.33% |
Total | 17 | 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% |
Martin Schwidefsky | 2 | 15.38% | 1 | 33.33% |
Steven Rostedt | 1 | 7.69% | 1 | 33.33% |
Total | 13 | 100.00% | 3 | 100.00% |
static inline notrace void arch_local_irq_enable(void)
{
__arch_local_irq_stosm(0x03);
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
David Howells | 11 | 73.33% | 1 | 33.33% |
Martin Schwidefsky | 3 | 20.00% | 1 | 33.33% |
Steven Rostedt | 1 | 6.67% | 1 | 33.33% |
Total | 15 | 100.00% | 3 | 100.00% |
/* This only restores external and I/O interrupt state */
static inline notrace void arch_local_irq_restore(unsigned long flags)
{
/* only disabled->disabled and disabled->enabled is valid */
if (flags & ARCH_IRQ_ENABLED)
arch_local_irq_enable();
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Martin Schwidefsky | 9 | 40.91% | 1 | 25.00% |
Christian Bornträger | 8 | 36.36% | 1 | 25.00% |
David Howells | 4 | 18.18% | 1 | 25.00% |
Steven Rostedt | 1 | 4.55% | 1 | 25.00% |
Total | 22 | 100.00% | 4 | 100.00% |
static inline notrace bool arch_irqs_disabled_flags(unsigned long flags)
{
return !(flags & ARCH_IRQ_ENABLED);
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Heiko Carstens | 16 | 80.00% | 1 | 25.00% |
David Howells | 2 | 10.00% | 1 | 25.00% |
Christian Bornträger | 1 | 5.00% | 1 | 25.00% |
Steven Rostedt | 1 | 5.00% | 1 | 25.00% |
Total | 20 | 100.00% | 4 | 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% |
Heiko Carstens | 2 | 11.76% | 1 | 33.33% |
Steven Rostedt | 1 | 5.88% | 1 | 33.33% |
Total | 17 | 100.00% | 3 | 100.00% |
#endif /* __ASM_IRQFLAGS_H */
Overall Contributors
Person | Tokens | Prop | Commits | CommitProp |
David Howells | 60 | 34.48% | 1 | 11.11% |
Martin Schwidefsky | 53 | 30.46% | 1 | 11.11% |
Heiko Carstens | 36 | 20.69% | 3 | 33.33% |
Christian Bornträger | 16 | 9.20% | 2 | 22.22% |
Steven Rostedt | 8 | 4.60% | 1 | 11.11% |
Greg Kroah-Hartman | 1 | 0.57% | 1 | 11.11% |
Total | 174 | 100.00% | 9 | 100.00% |
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.