x86/entry: Build thunk_$(BITS) only if CONFIG_PREEMPTION=y
[sfrench/cifs-2.6.git] / arch / x86 / entry / thunk_64.S
index 505b488fcc655b47945f0aeece64983736ae34c5..f38b07d2768bbfc186bf5df4963768166dc738f8 100644 (file)
@@ -31,14 +31,11 @@ SYM_FUNC_END(\name)
        _ASM_NOKPROBE(\name)
        .endm
 
-#ifdef CONFIG_PREEMPTION
        THUNK preempt_schedule_thunk, preempt_schedule
        THUNK preempt_schedule_notrace_thunk, preempt_schedule_notrace
        EXPORT_SYMBOL(preempt_schedule_thunk)
        EXPORT_SYMBOL(preempt_schedule_notrace_thunk)
-#endif
 
-#ifdef CONFIG_PREEMPTION
 SYM_CODE_START_LOCAL_NOALIGN(__thunk_restore)
        popq %r11
        popq %r10
@@ -53,4 +50,3 @@ SYM_CODE_START_LOCAL_NOALIGN(__thunk_restore)
        RET
        _ASM_NOKPROBE(__thunk_restore)
 SYM_CODE_END(__thunk_restore)
-#endif