#include <string.h>
#include <stdio.h>
#include <sys/types.h>
-#include <tgif/macros.h>
+#include <side/macros.h>
#include "smp.h"
#define __max(a,b) ((a)>(b)?(a):(b))
-#define TGIF_CPUMASK_SIZE 4096
+#define SIDE_CPUMASK_SIZE 4096
static int possible_cpus_array_len_cache;
static void update_possible_cpus_array_len_cache(void)
{
- char buf[TGIF_CPUMASK_SIZE];
+ char buf[SIDE_CPUMASK_SIZE];
int ret;
/* Get the possible cpu mask from sysfs, fallback to sysconf. */
- ret = get_possible_cpu_mask_from_sysfs((char *) &buf, TGIF_CPUMASK_SIZE);
+ ret = get_possible_cpu_mask_from_sysfs((char *) &buf, SIDE_CPUMASK_SIZE);
if (ret <= 0)
goto fallback;
*/
int get_possible_cpus_array_len(void)
{
- if (tgif_unlikely(!possible_cpus_array_len_cache))
+ if (side_unlikely(!possible_cpus_array_len_cache))
update_possible_cpus_array_len_cache();
return possible_cpus_array_len_cache;