X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=libringbuffer%2Fsmp.h;h=479a9dc60a01c9810d166ed1944e8fc7dfb4ecb0;hb=HEAD;hp=034058e9ee54ea032420fa8153636071f83cf3cf;hpb=35897f8b2d311b756b81657dad9c53ef1c0fad8a;p=lttng-ust.git diff --git a/libringbuffer/smp.h b/libringbuffer/smp.h deleted file mode 100644 index 034058e9..00000000 --- a/libringbuffer/smp.h +++ /dev/null @@ -1,34 +0,0 @@ -#ifndef _LIBRINGBUFFER_SMP_H -#define _LIBRINGBUFFER_SMP_H - -/* - * libringbuffer/smp.h - * - * Copyright 2011 (c) - Mathieu Desnoyers - * - * Dual LGPL v2.1/GPL v2 license. - */ - -#include "getcpu.h" - -/* - * 4kB of per-cpu data available. Enough to hold the control structures, - * but not ring buffers. - */ -#define PER_CPU_MEM_SIZE 4096 - -extern int __num_possible_cpus; -extern void _get_num_possible_cpus(void); - -static inline -int num_possible_cpus(void) -{ - if (!__num_possible_cpus) - _get_num_possible_cpus(); - return __num_possible_cpus; -} - -#define for_each_possible_cpu(cpu) \ - for ((cpu) = 0; (cpu) < num_possible_cpus(); (cpu)++) - -#endif /* _LIBRINGBUFFER_SMP_H */