smp.c: fix includes and macro namespace
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Sat, 9 Mar 2024 03:48:44 +0000 (22:48 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Sat, 9 Mar 2024 03:48:44 +0000 (22:48 -0500)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Change-Id: I5ef3c45240120f7f415c3bb38a280e3a7ceb410a

src/smp.c

index 9788e93198e4433ebb12933f0e96a01025706d6f..6621d39193d0293d2b6d58246cd6558b737de7da 100644 (file)
--- a/src/smp.c
+++ b/src/smp.c
 #include <string.h>
 #include <stdio.h>
 #include <sys/types.h>
-#include <side/macros.h>
+#include <rseq/compiler.h>
 
 #include "smp.h"
 
 #define __max(a,b) ((a)>(b)?(a):(b))
 
-#define SIDE_CPUMASK_SIZE      4096
+#define RSEQ_CPUMASK_SIZE      4096
 
 static int possible_cpus_array_len_cache;
 
@@ -230,11 +230,11 @@ error:
 
 static void update_possible_cpus_array_len_cache(void)
 {
-       char buf[SIDE_CPUMASK_SIZE];
+       char buf[RSEQ_CPUMASK_SIZE];
        int ret;
 
        /* Get the possible cpu mask from sysfs, fallback to sysconf. */
-       ret = get_possible_cpu_mask_from_sysfs((char *) &buf, SIDE_CPUMASK_SIZE);
+       ret = get_possible_cpu_mask_from_sysfs((char *) &buf, RSEQ_CPUMASK_SIZE);
        if (ret <= 0)
                goto fallback;
 
@@ -271,7 +271,7 @@ end:
  */
 int get_possible_cpus_array_len(void)
 {
-       if (side_unlikely(!possible_cpus_array_len_cache))
+       if (rseq_unlikely(!possible_cpus_array_len_cache))
                update_possible_cpus_array_len_cache();
 
        return possible_cpus_array_len_cache;
This page took 0.025047 seconds and 4 git commands to generate.