77#ifndef _ASM_X86_MACH_DEFAULT_APM_H
88#define _ASM_X86_MACH_DEFAULT_APM_H
99
10- #include <asm/nospec-branch.h>
11-
1210#ifdef APM_ZERO_SEGS
1311# define APM_DO_ZERO_SEGS \
1412 "pushl %%ds\n\t" \
@@ -34,7 +32,6 @@ static inline void apm_bios_call_asm(u32 func, u32 ebx_in, u32 ecx_in,
3432 * N.B. We do NOT need a cld after the BIOS call
3533 * because we always save and restore the flags.
3634 */
37- firmware_restrict_branch_speculation_start ();
3835 __asm__ __volatile__(APM_DO_ZERO_SEGS
3936 "pushl %%edi\n\t"
4037 "pushl %%ebp\n\t"
@@ -47,7 +44,6 @@ static inline void apm_bios_call_asm(u32 func, u32 ebx_in, u32 ecx_in,
4744 "=S" (* esi )
4845 : "a" (func ), "b" (ebx_in ), "c" (ecx_in )
4946 : "memory" , "cc" );
50- firmware_restrict_branch_speculation_end ();
5147}
5248
5349static inline bool apm_bios_call_simple_asm (u32 func , u32 ebx_in ,
@@ -60,7 +56,6 @@ static inline bool apm_bios_call_simple_asm(u32 func, u32 ebx_in,
6056 * N.B. We do NOT need a cld after the BIOS call
6157 * because we always save and restore the flags.
6258 */
63- firmware_restrict_branch_speculation_start ();
6459 __asm__ __volatile__(APM_DO_ZERO_SEGS
6560 "pushl %%edi\n\t"
6661 "pushl %%ebp\n\t"
@@ -73,7 +68,6 @@ static inline bool apm_bios_call_simple_asm(u32 func, u32 ebx_in,
7368 "=S" (si )
7469 : "a" (func ), "b" (ebx_in ), "c" (ecx_in )
7570 : "memory" , "cc" );
76- firmware_restrict_branch_speculation_end ();
7771 return error ;
7872}
7973
0 commit comments