Release 4.10 arch/sparc/include/asm/jump_label.h
#ifndef _ASM_SPARC_JUMP_LABEL_H
#define _ASM_SPARC_JUMP_LABEL_H
#ifndef __ASSEMBLY__
#include <linux/types.h>
#define JUMP_LABEL_NOP_SIZE 4
static __always_inline bool arch_static_branch(struct static_key *key, bool branch)
{
asm_volatile_goto("1:\n\t"
"nop\n\t"
"nop\n\t"
".pushsection __jump_table, \"aw\"\n\t"
".align 4\n\t"
".word 1b, %l[l_yes], %c0\n\t"
".popsection \n\t"
: : "i" (&((char *)key)[branch]) : : l_yes);
return false;
l_yes:
return true;
}
Contributors
| Person | Tokens | Prop | Commits | CommitProp |
peter zijlstra | peter zijlstra | 29 | 54.72% | 1 | 20.00% |
ingo molnar | ingo molnar | 14 | 26.42% | 2 | 40.00% |
jason baron | jason baron | 7 | 13.21% | 1 | 20.00% |
david s. miller | david s. miller | 3 | 5.66% | 1 | 20.00% |
| Total | 53 | 100.00% | 5 | 100.00% |
static __always_inline bool arch_static_branch_jump(struct static_key *key, bool branch)
{
asm_volatile_goto("1:\n\t"
"b %l[l_yes]\n\t"
"nop\n\t"
".pushsection __jump_table, \"aw\"\n\t"
".align 4\n\t"
".word 1b, %l[l_yes], %c0\n\t"
".popsection \n\t"
: : "i" (&((char *)key)[branch]) : : l_yes);
return false;
l_yes:
return true;
}
Contributors
| Person | Tokens | Prop | Commits | CommitProp |
peter zijlstra | peter zijlstra | 37 | 69.81% | 1 | 33.33% |
jason baron | jason baron | 9 | 16.98% | 1 | 33.33% |
ingo molnar | ingo molnar | 7 | 13.21% | 1 | 33.33% |
| Total | 53 | 100.00% | 3 | 100.00% |
typedef u32 jump_label_t;
struct jump_entry {
jump_label_t code;
jump_label_t target;
jump_label_t key;
};
#endif /* __ASSEMBLY__ */
#endif
Overall Contributors
| Person | Tokens | Prop | Commits | CommitProp |
peter zijlstra | peter zijlstra | 66 | 45.52% | 1 | 16.67% |
david s. miller | david s. miller | 34 | 23.45% | 1 | 16.67% |
ingo molnar | ingo molnar | 23 | 15.86% | 2 | 33.33% |
jason baron | jason baron | 16 | 11.03% | 1 | 16.67% |
anton blanchard | anton blanchard | 6 | 4.14% | 1 | 16.67% |
| Total | 145 | 100.00% | 6 | 100.00% |
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.