aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>2024-03-08 22:48:44 -0500
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>2024-03-08 22:48:44 -0500
commit80b7ed9f90d81740719c30c38774d1e729e1dff7 (patch)
tree1c381e08877b46beb8e883013d13695dba315d40
parent89b7e681b34e4d16c60f9a644dfccf3585e0d5e8 (diff)
downloadlibrseq-80b7ed9f90d81740719c30c38774d1e729e1dff7.tar.gz
smp.c: fix includes and macro namespace
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com> Change-Id: I5ef3c45240120f7f415c3bb38a280e3a7ceb410a
-rw-r--r--src/smp.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/smp.c b/src/smp.c
index 9788e93..6621d39 100644
--- a/src/smp.c
+++ b/src/smp.c
@@ -17,13 +17,13 @@
#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;