cregit-Linux how code gets into the kernel

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

PersonTokensPropCommitsCommitProp
Sam Ravnborg1466.67%133.33%
David Howells628.57%133.33%
Steven Rostedt14.76%133.33%
Total21100.00%3100.00%


static inline notrace void arch_local_irq_disable(void) { arch_local_irq_save(); }

Contributors

PersonTokensPropCommitsCommitProp
David Howells1076.92%133.33%
Sam Ravnborg215.38%133.33%
Steven Rostedt17.69%133.33%
Total13100.00%3100.00%


static inline notrace bool arch_irqs_disabled_flags(unsigned long flags) { return (flags & PSR_PIL) != 0; }

Contributors

PersonTokensPropCommitsCommitProp
Sam Ravnborg1676.19%133.33%
David Howells419.05%133.33%
Steven Rostedt14.76%133.33%
Total21100.00%3100.00%


static inline notrace bool arch_irqs_disabled(void) { return arch_irqs_disabled_flags(arch_local_save_flags()); }

Contributors

PersonTokensPropCommitsCommitProp
David Howells1482.35%133.33%
Sam Ravnborg211.76%133.33%
Steven Rostedt15.88%133.33%
Total17100.00%3100.00%

#endif /* (__ASSEMBLY__) */ #endif /* !(_ASM_IRQFLAGS_H) */

Overall Contributors

PersonTokensPropCommitsCommitProp
Sam Ravnborg6657.39%120.00%
David Howells4438.26%240.00%
Steven Rostedt43.48%120.00%
Greg Kroah-Hartman10.87%120.00%
Total115100.00%5100.00%
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.
Created with cregit.