summaryrefslogtreecommitdiff
path: root/benchmarks/stress-ng/files/patch-stress-tlb-shootdown.c
blob: d54609e2fc7f58a2e4d51dff214a1f825875abe9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--- stress-tlb-shootdown.c.orig	2021-12-19 20:49:35 UTC
+++ stress-tlb-shootdown.c
@@ -64,7 +64,11 @@ static int stress_tlb_shootdown(const stress_args_t *a
 		const int32_t max_cpus = stress_get_processors_configured();
 
 		CPU_ZERO(&proc_mask);
+#ifdef CPU_ALLOC
 		CPU_OR(&proc_mask, &proc_mask_initial, &proc_mask);
+#else
+		CPU_OR(&proc_mask, &proc_mask_initial);
+#endif
 
 		tlb_procs = max_cpus;
 		if (tlb_procs > MAX_TLB_PROCS)