| * This file is subject to the terms and conditions of the GNU General Public |
| * License. See the file "COPYING" in the main directory of this archive |
| * Copyright (c) 2010 Cavium Networks, Inc. |
| #ifndef _ASM_MIPS_JUMP_LABEL_H |
| #define _ASM_MIPS_JUMP_LABEL_H |
| #define JUMP_LABEL_NOP_SIZE 4 |
| #define WORD_INSN ".dword" |
| #define WORD_INSN ".word" |
| static __always_inline bool arch_static_branch(struct static_key *key) |
| asm_volatile_goto("1:\tnop\n\t" |
| ".pushsection __jump_table, \"aw\"\n\t" |
| WORD_INSN " 1b, %l[l_yes], %0\n\t" |
| : : "i" (key) : : l_yes); |
| typedef u64 jump_label_t; |
| typedef u32 jump_label_t; |
| #endif /* _ASM_MIPS_JUMP_LABEL_H */ |