X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=lib%2Fringbuffer%2Fvatomic.h;h=1a3eaaa86cf855827b7ccabd3a883471095dd4a9;hb=886d51a3d7ed5fa6b41d7f19b3e14ae6c535a44c;hp=b944dd63472f25e4dbc653ce91955271abede0aa;hpb=bbda3a00431e819ecfbe0056eaa598100c848e0c;p=lttng-modules.git diff --git a/lib/ringbuffer/vatomic.h b/lib/ringbuffer/vatomic.h index b944dd63..1a3eaaa8 100644 --- a/lib/ringbuffer/vatomic.h +++ b/lib/ringbuffer/vatomic.h @@ -1,12 +1,24 @@ -#ifndef _LINUX_RING_BUFFER_VATOMIC_H -#define _LINUX_RING_BUFFER_VATOMIC_H +#ifndef _LIB_RING_BUFFER_VATOMIC_H +#define _LIB_RING_BUFFER_VATOMIC_H /* - * linux/ringbuffer/vatomic.h + * lib/ringbuffer/vatomic.h * - * Copyright (C) 2010 - Mathieu Desnoyers + * Copyright (C) 2010-2012 Mathieu Desnoyers * - * Dual LGPL v2.1/GPL v2 license. + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; only + * version 2.1 of the License. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ #include @@ -82,4 +94,4 @@ long v_cmpxchg(const struct lib_ring_buffer_config *config, union v_atomic *v_a, return atomic_long_cmpxchg(&v_a->a, old, _new); } -#endif /* _LINUX_RING_BUFFER_VATOMIC_H */ +#endif /* _LIB_RING_BUFFER_VATOMIC_H */