Rename "libside" to "libtgif"
[libside.git] / src / smp.c
index 9788e93198e4433ebb12933f0e96a01025706d6f..0816389d268bb15533e6681896b9264a0800eafb 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 <tgif/macros.h>
 
 #include "smp.h"
 
 #define __max(a,b) ((a)>(b)?(a):(b))
 
-#define SIDE_CPUMASK_SIZE      4096
+#define TGIF_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[TGIF_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, TGIF_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 (tgif_unlikely(!possible_cpus_array_len_cache))
                update_possible_cpus_array_len_cache();
 
        return possible_cpus_array_len_cache;
This page took 0.02411 seconds and 4 git commands to generate.