hc
2023-12-09 b22da3d8526a935aa31e086e63f60ff3246cb61c
kernel/kernel/locking/semaphore.c
....@@ -1,8 +1,7 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * Copyright (c) 2008 Intel Corporation
34 * Author: Matthew Wilcox <willy@linux.intel.com>
4
- *
5
- * Distributed under the terms of the GNU GPL, version 2
65 *
76 * This file implements counting semaphores.
87 * A counting semaphore may be acquired 'n' times before sleeping.
....@@ -120,7 +119,7 @@
120119 * @sem: the semaphore to be acquired
121120 *
122121 * 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.
124123 *
125124 * NOTE: This return value is inverted from both spin_trylock and
126125 * mutex_trylock! Be careful about this when converting code.