x86/nospec: Remove unused RSB_FILL_LOOPS
authorAnthony Steinhauser <asteinhauser@google.com>
Thu, 26 Dec 2019 20:45:12 +0000 (12:45 -0800)
committerBorislav Petkov <bp@suse.de>
Thu, 2 Jan 2020 09:54:53 +0000 (10:54 +0100)
It was never really used, see

  117cc7a908c8 ("x86/retpoline: Fill return stack buffer on vmexit")

  [ bp: Massage. ]

Signed-off-by: Anthony Steinhauser <asteinhauser@google.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: x86-ml <x86@kernel.org>
Link: https://lkml.kernel.org/r/20191226204512.24524-1-asteinhauser@google.com
arch/x86/include/asm/nospec-branch.h

index 5c24a7b..07e95dc 100644 (file)
@@ -37,7 +37,6 @@
  */
 
 #define RSB_CLEAR_LOOPS                32      /* To forcibly overwrite all entries */
-#define RSB_FILL_LOOPS         16      /* To avoid underflow */
 
 /*
  * Google experimented with loop-unrolling and this turned out to be