cregit-Linux how code gets into the kernel

Release 4.14 arch/microblaze/include/asm/atomic.h

/* SPDX-License-Identifier: GPL-2.0 */
#ifndef _ASM_MICROBLAZE_ATOMIC_H

#define _ASM_MICROBLAZE_ATOMIC_H

#include <asm/cmpxchg.h>
#include <asm-generic/atomic.h>
#include <asm-generic/atomic64.h>

/*
 * Atomically test *v and decrement if it is greater than 0.
 * The function returns the old value of *v minus 1.
 */

static inline int atomic_dec_if_positive(atomic_t *v) { unsigned long flags; int res; local_irq_save(flags); res = v->counter - 1; if (res >= 0) v->counter = res; local_irq_restore(flags); return res; }

Contributors

PersonTokensPropCommitsCommitProp
Michal Simek51100.00%1100.00%
Total51100.00%1100.00%

#define atomic_dec_if_positive atomic_dec_if_positive #endif /* _ASM_MICROBLAZE_ATOMIC_H */

Overall Contributors

PersonTokensPropCommitsCommitProp
Michal Simek6384.00%116.67%
Shaohua Li45.33%116.67%
David Howells34.00%116.67%
Daniel Borkmann34.00%116.67%
Remis Lima Baima11.33%116.67%
Greg Kroah-Hartman11.33%116.67%
Total75100.00%6100.00%
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.
Created with cregit.