~ubuntu-branches/ubuntu/quantal/linux-linaro-mx51/quantal

« back to all changes in this revision

Viewing changes to arch/mips/include/asm/jump_label.h

  • Committer: Package Import Robot
  • Author(s): John Rigby, John Rigby
  • Date: 2011-09-26 10:44:23 UTC
  • Revision ID: package-import@ubuntu.com-20110926104423-3o58a3c1bj7x00rs
Tags: 3.0.0-1007.9
[ John Rigby ]

Enable crypto modules and remove crypto-modules from
exclude-module files
LP: #826021

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
#define WORD_INSN ".word"
21
21
#endif
22
22
 
23
 
#define JUMP_LABEL(key, label)                                          \
24
 
        do {                                                            \
25
 
                asm goto("1:\tnop\n\t"                                  \
26
 
                        "nop\n\t"                                       \
27
 
                        ".pushsection __jump_table,  \"a\"\n\t"         \
28
 
                        WORD_INSN " 1b, %l[" #label "], %0\n\t"         \
29
 
                        ".popsection\n\t"                               \
30
 
                        : :  "i" (key) :  : label);                     \
31
 
        } while (0)
32
 
 
 
23
static __always_inline bool arch_static_branch(struct jump_label_key *key)
 
24
{
 
25
        asm goto("1:\tnop\n\t"
 
26
                "nop\n\t"
 
27
                ".pushsection __jump_table,  \"aw\"\n\t"
 
28
                WORD_INSN " 1b, %l[l_yes], %0\n\t"
 
29
                ".popsection\n\t"
 
30
                : :  "i" (key) : : l_yes);
 
31
        return false;
 
32
l_yes:
 
33
        return true;
 
34
}
33
35
 
34
36
#endif /* __KERNEL__ */
35
37