summaryrefslogtreecommitdiff
path: root/drivers/cpufreq
diff options
context:
space:
mode:
authorOleg Nesterov <oleg@redhat.com>2014-04-19 14:07:15 (GMT)
committerOleg Nesterov <oleg@redhat.com>2014-04-30 17:10:35 (GMT)
commit8dbacad93a2a12adebcc717e6055b1bcc1739ab8 (patch)
tree30304d63a8174762bf68e1dc271390c0eaec39ed /drivers/cpufreq
parentff261964cfcfe49d73690ca29b0ba2853d9497e3 (diff)
downloadlinux-8dbacad93a2a12adebcc717e6055b1bcc1739ab8.tar.xz
uprobes/x86: Make good_insns_* depend on CONFIG_X86_*
Add the suitable ifdef's around good_insns_* arrays. We do not want to add the ugly ifdef's into their only user, uprobe_init_insn(), so the "#else" branch simply defines them as NULL. This doesn't generate the extra code, gcc is smart enough, although the code is fine even if it could not detect that (without CONFIG_IA32_EMULATION) is_64bit_mm() is __builtin_constant_p(). The patch looks more complicated because it also moves good_insns_64 up close to good_insns_32. Signed-off-by: Oleg Nesterov <oleg@redhat.com> Reviewed-by: Jim Keniston <jkenisto@us.ibm.com> Acked-by: Srikar Dronamraju <srikar@linux.vnet.ibm.com>
Diffstat (limited to 'drivers/cpufreq')
0 files changed, 0 insertions, 0 deletions