.. | .. |
---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-or-later */ |
---|
1 | 2 | /* |
---|
2 | 3 | * Generic C implementation of atomic counter operations. Usable on |
---|
3 | 4 | * UP systems only. Do not include in machine independent code. |
---|
4 | 5 | * |
---|
5 | 6 | * Copyright (C) 2007 Red Hat, Inc. All Rights Reserved. |
---|
6 | 7 | * Written by David Howells (dhowells@redhat.com) |
---|
7 | | - * |
---|
8 | | - * This program is free software; you can redistribute it and/or |
---|
9 | | - * modify it under the terms of the GNU General Public Licence |
---|
10 | | - * as published by the Free Software Foundation; either version |
---|
11 | | - * 2 of the Licence, or (at your option) any later version. |
---|
12 | 8 | */ |
---|
13 | 9 | #ifndef __ASM_GENERIC_ATOMIC_H |
---|
14 | 10 | #define __ASM_GENERIC_ATOMIC_H |
---|
.. | .. |
---|
162 | 158 | * Atomic operations that C can't guarantee us. Useful for |
---|
163 | 159 | * resource counting etc.. |
---|
164 | 160 | */ |
---|
165 | | - |
---|
166 | | -#define ATOMIC_INIT(i) { (i) } |
---|
167 | 161 | |
---|
168 | 162 | /** |
---|
169 | 163 | * atomic_read - read atomic variable |
---|