.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /* |
---|
2 | 3 | * Copyright (c) 2008 Intel Corporation |
---|
3 | 4 | * Author: Matthew Wilcox <willy@linux.intel.com> |
---|
4 | | - * |
---|
5 | | - * Distributed under the terms of the GNU GPL, version 2 |
---|
6 | 5 | * |
---|
7 | 6 | * This file implements counting semaphores. |
---|
8 | 7 | * A counting semaphore may be acquired 'n' times before sleeping. |
---|
.. | .. |
---|
120 | 119 | * @sem: the semaphore to be acquired |
---|
121 | 120 | * |
---|
122 | 121 | * Try to acquire the semaphore atomically. Returns 0 if the semaphore has |
---|
123 | | - * been acquired successfully or 1 if it it cannot be acquired. |
---|
| 122 | + * been acquired successfully or 1 if it cannot be acquired. |
---|
124 | 123 | * |
---|
125 | 124 | * NOTE: This return value is inverted from both spin_trylock and |
---|
126 | 125 | * mutex_trylock! Be careful about this when converting code. |
---|