bitops.h 13.6 KB
Newer Older
L
Linus Torvalds 已提交
1 2 3 4 5
/*
 * This file is subject to the terms and conditions of the GNU General Public
 * License.  See the file "COPYING" in the main directory of this archive
 * for more details.
 *
6
 * Copyright (c) 1994 - 1997, 99, 2000, 06, 07  Ralf Baechle (ralf@linux-mips.org)
L
Linus Torvalds 已提交
7 8 9 10 11 12
 * Copyright (c) 1999, 2000  Silicon Graphics, Inc.
 */
#ifndef _ASM_BITOPS_H
#define _ASM_BITOPS_H

#include <linux/compiler.h>
13
#include <linux/irqflags.h>
L
Linus Torvalds 已提交
14
#include <linux/types.h>
15
#include <asm/barrier.h>
16
#include <asm/bug.h>
L
Linus Torvalds 已提交
17 18
#include <asm/byteorder.h>		/* sigh ... */
#include <asm/cpu-features.h>
19 20
#include <asm/sgidefs.h>
#include <asm/war.h>
L
Linus Torvalds 已提交
21 22 23 24

#if (_MIPS_SZLONG == 32)
#define SZLONG_LOG 5
#define SZLONG_MASK 31UL
25 26
#define __LL		"ll	"
#define __SC		"sc	"
27 28
#define __INS		"ins    "
#define __EXT		"ext    "
L
Linus Torvalds 已提交
29 30 31
#elif (_MIPS_SZLONG == 64)
#define SZLONG_LOG 6
#define SZLONG_MASK 63UL
32 33
#define __LL		"lld	"
#define __SC		"scd	"
34 35
#define __INS		"dins    "
#define __EXT		"dext    "
L
Linus Torvalds 已提交
36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56
#endif

/*
 * clear_bit() doesn't provide any barrier for the compiler.
 */
#define smp_mb__before_clear_bit()	smp_mb()
#define smp_mb__after_clear_bit()	smp_mb()

/*
 * set_bit - Atomically set a bit in memory
 * @nr: the bit to set
 * @addr: the address to start counting from
 *
 * This function is atomic and may not be reordered.  See __set_bit()
 * if you do not require the atomic guarantees.
 * Note that @nr may be almost arbitrarily large; this function is not
 * restricted to acting on a single-word quantity.
 */
static inline void set_bit(unsigned long nr, volatile unsigned long *addr)
{
	unsigned long *m = ((unsigned long *) addr) + (nr >> SZLONG_LOG);
57
	unsigned short bit = nr & SZLONG_MASK;
L
Linus Torvalds 已提交
58 59 60 61
	unsigned long temp;

	if (cpu_has_llsc && R10000_LLSC_WAR) {
		__asm__ __volatile__(
62
		"	.set	mips3					\n"
L
Linus Torvalds 已提交
63 64
		"1:	" __LL "%0, %1			# set_bit	\n"
		"	or	%0, %2					\n"
65
		"	" __SC	"%0, %1					\n"
L
Linus Torvalds 已提交
66
		"	beqzl	%0, 1b					\n"
67
		"	.set	mips0					\n"
L
Linus Torvalds 已提交
68
		: "=&r" (temp), "=m" (*m)
69
		: "ir" (1UL << bit), "m" (*m));
70
#ifdef CONFIG_CPU_MIPSR2
71
	} else if (__builtin_constant_p(bit)) {
72 73 74 75 76 77 78 79 80
		__asm__ __volatile__(
		"1:	" __LL "%0, %1			# set_bit	\n"
		"	" __INS "%0, %4, %2, 1				\n"
		"	" __SC "%0, %1					\n"
		"	beqz	%0, 2f					\n"
		"	.subsection 2					\n"
		"2:	b	1b					\n"
		"	.previous					\n"
		: "=&r" (temp), "=m" (*m)
81
		: "ir" (bit), "m" (*m), "r" (~0));
82
#endif /* CONFIG_CPU_MIPSR2 */
L
Linus Torvalds 已提交
83 84
	} else if (cpu_has_llsc) {
		__asm__ __volatile__(
85
		"	.set	mips3					\n"
L
Linus Torvalds 已提交
86 87
		"1:	" __LL "%0, %1			# set_bit	\n"
		"	or	%0, %2					\n"
88
		"	" __SC	"%0, %1					\n"
89 90 91 92
		"	beqz	%0, 2f					\n"
		"	.subsection 2					\n"
		"2:	b	1b					\n"
		"	.previous					\n"
93
		"	.set	mips0					\n"
L
Linus Torvalds 已提交
94
		: "=&r" (temp), "=m" (*m)
95
		: "ir" (1UL << bit), "m" (*m));
L
Linus Torvalds 已提交
96 97 98
	} else {
		volatile unsigned long *a = addr;
		unsigned long mask;
99
		unsigned long flags;
L
Linus Torvalds 已提交
100 101

		a += nr >> SZLONG_LOG;
102
		mask = 1UL << bit;
103
		local_irq_save(flags);
L
Linus Torvalds 已提交
104
		*a |= mask;
105
		local_irq_restore(flags);
L
Linus Torvalds 已提交
106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121
	}
}

/*
 * clear_bit - Clears a bit in memory
 * @nr: Bit to clear
 * @addr: Address to start counting from
 *
 * clear_bit() is atomic and may not be reordered.  However, it does
 * not contain a memory barrier, so if it is used for locking purposes,
 * you should call smp_mb__before_clear_bit() and/or smp_mb__after_clear_bit()
 * in order to ensure changes are visible on other processors.
 */
static inline void clear_bit(unsigned long nr, volatile unsigned long *addr)
{
	unsigned long *m = ((unsigned long *) addr) + (nr >> SZLONG_LOG);
122
	unsigned short bit = nr & SZLONG_MASK;
L
Linus Torvalds 已提交
123 124 125 126
	unsigned long temp;

	if (cpu_has_llsc && R10000_LLSC_WAR) {
		__asm__ __volatile__(
127
		"	.set	mips3					\n"
L
Linus Torvalds 已提交
128 129 130 131
		"1:	" __LL "%0, %1			# clear_bit	\n"
		"	and	%0, %2					\n"
		"	" __SC "%0, %1					\n"
		"	beqzl	%0, 1b					\n"
132
		"	.set	mips0					\n"
L
Linus Torvalds 已提交
133
		: "=&r" (temp), "=m" (*m)
134
		: "ir" (~(1UL << bit)), "m" (*m));
135
#ifdef CONFIG_CPU_MIPSR2
136
	} else if (__builtin_constant_p(bit)) {
137 138 139 140 141 142 143 144 145
		__asm__ __volatile__(
		"1:	" __LL "%0, %1			# clear_bit	\n"
		"	" __INS "%0, $0, %2, 1				\n"
		"	" __SC "%0, %1					\n"
		"	beqz	%0, 2f					\n"
		"	.subsection 2					\n"
		"2:	b	1b					\n"
		"	.previous					\n"
		: "=&r" (temp), "=m" (*m)
146
		: "ir" (bit), "m" (*m));
147
#endif /* CONFIG_CPU_MIPSR2 */
L
Linus Torvalds 已提交
148 149
	} else if (cpu_has_llsc) {
		__asm__ __volatile__(
150
		"	.set	mips3					\n"
L
Linus Torvalds 已提交
151 152 153
		"1:	" __LL "%0, %1			# clear_bit	\n"
		"	and	%0, %2					\n"
		"	" __SC "%0, %1					\n"
154 155 156 157
		"	beqz	%0, 2f					\n"
		"	.subsection 2					\n"
		"2:	b	1b					\n"
		"	.previous					\n"
158
		"	.set	mips0					\n"
L
Linus Torvalds 已提交
159
		: "=&r" (temp), "=m" (*m)
160
		: "ir" (~(1UL << bit)), "m" (*m));
L
Linus Torvalds 已提交
161 162 163
	} else {
		volatile unsigned long *a = addr;
		unsigned long mask;
164
		unsigned long flags;
L
Linus Torvalds 已提交
165 166

		a += nr >> SZLONG_LOG;
167
		mask = 1UL << bit;
168
		local_irq_save(flags);
L
Linus Torvalds 已提交
169
		*a &= ~mask;
170
		local_irq_restore(flags);
L
Linus Torvalds 已提交
171 172 173 174 175 176 177 178 179 180 181 182 183 184
	}
}

/*
 * change_bit - Toggle a bit in memory
 * @nr: Bit to change
 * @addr: Address to start counting from
 *
 * change_bit() is atomic and may not be reordered.
 * Note that @nr may be almost arbitrarily large; this function is not
 * restricted to acting on a single-word quantity.
 */
static inline void change_bit(unsigned long nr, volatile unsigned long *addr)
{
185 186
	unsigned short bit = nr & SZLONG_MASK;

L
Linus Torvalds 已提交
187 188 189 190 191
	if (cpu_has_llsc && R10000_LLSC_WAR) {
		unsigned long *m = ((unsigned long *) addr) + (nr >> SZLONG_LOG);
		unsigned long temp;

		__asm__ __volatile__(
192
		"	.set	mips3				\n"
L
Linus Torvalds 已提交
193 194
		"1:	" __LL "%0, %1		# change_bit	\n"
		"	xor	%0, %2				\n"
195
		"	" __SC	"%0, %1				\n"
L
Linus Torvalds 已提交
196
		"	beqzl	%0, 1b				\n"
197
		"	.set	mips0				\n"
L
Linus Torvalds 已提交
198
		: "=&r" (temp), "=m" (*m)
199
		: "ir" (1UL << bit), "m" (*m));
L
Linus Torvalds 已提交
200 201 202 203 204
	} else if (cpu_has_llsc) {
		unsigned long *m = ((unsigned long *) addr) + (nr >> SZLONG_LOG);
		unsigned long temp;

		__asm__ __volatile__(
205
		"	.set	mips3				\n"
L
Linus Torvalds 已提交
206 207
		"1:	" __LL "%0, %1		# change_bit	\n"
		"	xor	%0, %2				\n"
208
		"	" __SC	"%0, %1				\n"
209 210 211 212
		"	beqz	%0, 2f				\n"
		"	.subsection 2				\n"
		"2:	b	1b				\n"
		"	.previous				\n"
213
		"	.set	mips0				\n"
L
Linus Torvalds 已提交
214
		: "=&r" (temp), "=m" (*m)
215
		: "ir" (1UL << bit), "m" (*m));
L
Linus Torvalds 已提交
216 217 218
	} else {
		volatile unsigned long *a = addr;
		unsigned long mask;
219
		unsigned long flags;
L
Linus Torvalds 已提交
220 221

		a += nr >> SZLONG_LOG;
222
		mask = 1UL << bit;
223
		local_irq_save(flags);
L
Linus Torvalds 已提交
224
		*a ^= mask;
225
		local_irq_restore(flags);
L
Linus Torvalds 已提交
226 227 228 229 230 231 232 233 234 235 236 237 238 239
	}
}

/*
 * test_and_set_bit - Set a bit and return its old value
 * @nr: Bit to set
 * @addr: Address to count from
 *
 * This operation is atomic and cannot be reordered.
 * It also implies a memory barrier.
 */
static inline int test_and_set_bit(unsigned long nr,
	volatile unsigned long *addr)
{
240 241
	unsigned short bit = nr & SZLONG_MASK;

L
Linus Torvalds 已提交
242 243 244 245 246
	if (cpu_has_llsc && R10000_LLSC_WAR) {
		unsigned long *m = ((unsigned long *) addr) + (nr >> SZLONG_LOG);
		unsigned long temp, res;

		__asm__ __volatile__(
247
		"	.set	mips3					\n"
L
Linus Torvalds 已提交
248 249 250 251 252
		"1:	" __LL "%0, %1		# test_and_set_bit	\n"
		"	or	%2, %0, %3				\n"
		"	" __SC	"%2, %1					\n"
		"	beqzl	%2, 1b					\n"
		"	and	%2, %0, %3				\n"
253
		"	.set	mips0					\n"
L
Linus Torvalds 已提交
254
		: "=&r" (temp), "=m" (*m), "=&r" (res)
255
		: "r" (1UL << bit), "m" (*m)
L
Linus Torvalds 已提交
256 257 258 259 260 261 262 263
		: "memory");

		return res != 0;
	} else if (cpu_has_llsc) {
		unsigned long *m = ((unsigned long *) addr) + (nr >> SZLONG_LOG);
		unsigned long temp, res;

		__asm__ __volatile__(
264 265
		"	.set	push					\n"
		"	.set	noreorder				\n"
266
		"	.set	mips3					\n"
267
		"1:	" __LL "%0, %1		# test_and_set_bit	\n"
L
Linus Torvalds 已提交
268 269
		"	or	%2, %0, %3				\n"
		"	" __SC	"%2, %1					\n"
270
		"	beqz	%2, 2f					\n"
L
Linus Torvalds 已提交
271
		"	 and	%2, %0, %3				\n"
272 273 274 275
		"	.subsection 2					\n"
		"2:	b	1b					\n"
		"	 nop						\n"
		"	.previous					\n"
276
		"	.set	pop					\n"
L
Linus Torvalds 已提交
277
		: "=&r" (temp), "=m" (*m), "=&r" (res)
278
		: "r" (1UL << bit), "m" (*m)
L
Linus Torvalds 已提交
279 280 281 282 283 284 285
		: "memory");

		return res != 0;
	} else {
		volatile unsigned long *a = addr;
		unsigned long mask;
		int retval;
286
		unsigned long flags;
L
Linus Torvalds 已提交
287 288

		a += nr >> SZLONG_LOG;
289
		mask = 1UL << bit;
290
		local_irq_save(flags);
L
Linus Torvalds 已提交
291 292
		retval = (mask & *a) != 0;
		*a |= mask;
293
		local_irq_restore(flags);
L
Linus Torvalds 已提交
294 295 296

		return retval;
	}
297 298

	smp_mb();
L
Linus Torvalds 已提交
299 300 301 302 303 304 305 306 307 308 309 310 311
}

/*
 * test_and_clear_bit - Clear a bit and return its old value
 * @nr: Bit to clear
 * @addr: Address to count from
 *
 * This operation is atomic and cannot be reordered.
 * It also implies a memory barrier.
 */
static inline int test_and_clear_bit(unsigned long nr,
	volatile unsigned long *addr)
{
312 313
	unsigned short bit = nr & SZLONG_MASK;

L
Linus Torvalds 已提交
314 315 316 317 318
	if (cpu_has_llsc && R10000_LLSC_WAR) {
		unsigned long *m = ((unsigned long *) addr) + (nr >> SZLONG_LOG);
		unsigned long temp, res;

		__asm__ __volatile__(
319
		"	.set	mips3					\n"
L
Linus Torvalds 已提交
320 321 322
		"1:	" __LL	"%0, %1		# test_and_clear_bit	\n"
		"	or	%2, %0, %3				\n"
		"	xor	%2, %3					\n"
323
		"	" __SC 	"%2, %1					\n"
L
Linus Torvalds 已提交
324 325
		"	beqzl	%2, 1b					\n"
		"	and	%2, %0, %3				\n"
326
		"	.set	mips0					\n"
L
Linus Torvalds 已提交
327
		: "=&r" (temp), "=m" (*m), "=&r" (res)
328
		: "r" (1UL << bit), "m" (*m)
L
Linus Torvalds 已提交
329 330 331
		: "memory");

		return res != 0;
332 333 334 335 336 337 338 339 340 341 342 343 344 345 346
#ifdef CONFIG_CPU_MIPSR2
	} else if (__builtin_constant_p(nr)) {
		unsigned long *m = ((unsigned long *) addr) + (nr >> SZLONG_LOG);
		unsigned long temp, res;

		__asm__ __volatile__(
		"1:	" __LL	"%0, %1		# test_and_clear_bit	\n"
		"	" __EXT "%2, %0, %3, 1				\n"
		"	" __INS	"%0, $0, %3, 1				\n"
		"	" __SC 	"%0, %1					\n"
		"	beqz	%0, 2f					\n"
		"	.subsection 2					\n"
		"2:	b	1b					\n"
		"	.previous					\n"
		: "=&r" (temp), "=m" (*m), "=&r" (res)
347
		: "ri" (bit), "m" (*m)
348 349 350 351
		: "memory");

		return res;
#endif
L
Linus Torvalds 已提交
352 353 354 355 356
	} else if (cpu_has_llsc) {
		unsigned long *m = ((unsigned long *) addr) + (nr >> SZLONG_LOG);
		unsigned long temp, res;

		__asm__ __volatile__(
357 358
		"	.set	push					\n"
		"	.set	noreorder				\n"
359
		"	.set	mips3					\n"
360
		"1:	" __LL	"%0, %1		# test_and_clear_bit	\n"
L
Linus Torvalds 已提交
361 362
		"	or	%2, %0, %3				\n"
		"	xor	%2, %3					\n"
363
		"	" __SC 	"%2, %1					\n"
364
		"	beqz	%2, 2f					\n"
L
Linus Torvalds 已提交
365
		"	 and	%2, %0, %3				\n"
366 367 368 369
		"	.subsection 2					\n"
		"2:	b	1b					\n"
		"	 nop						\n"
		"	.previous					\n"
370
		"	.set	pop					\n"
L
Linus Torvalds 已提交
371
		: "=&r" (temp), "=m" (*m), "=&r" (res)
372
		: "r" (1UL << bit), "m" (*m)
L
Linus Torvalds 已提交
373 374 375 376 377 378 379
		: "memory");

		return res != 0;
	} else {
		volatile unsigned long *a = addr;
		unsigned long mask;
		int retval;
380
		unsigned long flags;
L
Linus Torvalds 已提交
381 382

		a += nr >> SZLONG_LOG;
383
		mask = 1UL << bit;
384
		local_irq_save(flags);
L
Linus Torvalds 已提交
385 386
		retval = (mask & *a) != 0;
		*a &= ~mask;
387
		local_irq_restore(flags);
L
Linus Torvalds 已提交
388 389 390

		return retval;
	}
391 392

	smp_mb();
L
Linus Torvalds 已提交
393 394 395 396 397 398 399 400 401 402 403 404 405
}

/*
 * test_and_change_bit - Change a bit and return its old value
 * @nr: Bit to change
 * @addr: Address to count from
 *
 * This operation is atomic and cannot be reordered.
 * It also implies a memory barrier.
 */
static inline int test_and_change_bit(unsigned long nr,
	volatile unsigned long *addr)
{
406 407
	unsigned short bit = nr & SZLONG_MASK;

L
Linus Torvalds 已提交
408 409 410 411 412
	if (cpu_has_llsc && R10000_LLSC_WAR) {
		unsigned long *m = ((unsigned long *) addr) + (nr >> SZLONG_LOG);
		unsigned long temp, res;

		__asm__ __volatile__(
413
		"	.set	mips3					\n"
414
		"1:	" __LL	"%0, %1		# test_and_change_bit	\n"
L
Linus Torvalds 已提交
415
		"	xor	%2, %0, %3				\n"
416
		"	" __SC	"%2, %1					\n"
L
Linus Torvalds 已提交
417 418
		"	beqzl	%2, 1b					\n"
		"	and	%2, %0, %3				\n"
419
		"	.set	mips0					\n"
L
Linus Torvalds 已提交
420
		: "=&r" (temp), "=m" (*m), "=&r" (res)
421
		: "r" (1UL << bit), "m" (*m)
L
Linus Torvalds 已提交
422 423 424 425 426 427 428 429
		: "memory");

		return res != 0;
	} else if (cpu_has_llsc) {
		unsigned long *m = ((unsigned long *) addr) + (nr >> SZLONG_LOG);
		unsigned long temp, res;

		__asm__ __volatile__(
430 431
		"	.set	push					\n"
		"	.set	noreorder				\n"
432
		"	.set	mips3					\n"
433
		"1:	" __LL	"%0, %1		# test_and_change_bit	\n"
L
Linus Torvalds 已提交
434
		"	xor	%2, %0, %3				\n"
435
		"	" __SC	"\t%2, %1				\n"
436
		"	beqz	%2, 2f					\n"
L
Linus Torvalds 已提交
437
		"	 and	%2, %0, %3				\n"
438 439 440 441
		"	.subsection 2					\n"
		"2:	b	1b					\n"
		"	 nop						\n"
		"	.previous					\n"
442
		"	.set	pop					\n"
L
Linus Torvalds 已提交
443
		: "=&r" (temp), "=m" (*m), "=&r" (res)
444
		: "r" (1UL << bit), "m" (*m)
L
Linus Torvalds 已提交
445 446 447 448 449 450
		: "memory");

		return res != 0;
	} else {
		volatile unsigned long *a = addr;
		unsigned long mask, retval;
451
		unsigned long flags;
L
Linus Torvalds 已提交
452 453

		a += nr >> SZLONG_LOG;
454
		mask = 1UL << bit;
455
		local_irq_save(flags);
L
Linus Torvalds 已提交
456 457
		retval = (mask & *a) != 0;
		*a ^= mask;
458
		local_irq_restore(flags);
L
Linus Torvalds 已提交
459 460 461

		return retval;
	}
462 463

	smp_mb();
L
Linus Torvalds 已提交
464 465
}

466
#include <asm-generic/bitops/non-atomic.h>
L
Linus Torvalds 已提交
467 468

/*
469
 * Return the bit position (0..63) of the most significant 1 bit in a word
470 471
 * Returns -1 if no 1 bit exists
 */
472
static inline int __ilog2(unsigned long x)
473 474 475
{
	int lz;

476 477 478 479 480 481 482 483
	if (sizeof(x) == 4) {
		__asm__ (
		"	.set	push					\n"
		"	.set	mips32					\n"
		"	clz	%0, %1					\n"
		"	.set	pop					\n"
		: "=r" (lz)
		: "r" (x));
484

485 486 487 488
		return 31 - lz;
	}

	BUG_ON(sizeof(x) != 8);
489 490 491 492 493 494 495 496 497 498 499 500

	__asm__ (
	"	.set	push						\n"
	"	.set	mips64						\n"
	"	dclz	%0, %1						\n"
	"	.set	pop						\n"
	: "=r" (lz)
	: "r" (x));

	return 63 - lz;
}

501 502
#if defined(CONFIG_CPU_MIPS32) || defined(CONFIG_CPU_MIPS64)

503 504
/*
 * __ffs - find first bit in word.
L
Linus Torvalds 已提交
505 506
 * @word: The word to search
 *
507 508
 * Returns 0..SZLONG-1
 * Undefined if no bit exists, so code should check against 0 first.
L
Linus Torvalds 已提交
509
 */
510
static inline unsigned long __ffs(unsigned long word)
L
Linus Torvalds 已提交
511
{
512
	return __ilog2(word & -word);
L
Linus Torvalds 已提交
513 514 515
}

/*
516
 * fls - find last bit set.
L
Linus Torvalds 已提交
517 518
 * @word: The word to search
 *
519 520
 * This is defined the same way as ffs.
 * Note fls(0) = 0, fls(1) = 1, fls(0x80000000) = 32.
L
Linus Torvalds 已提交
521
 */
522
static inline int fls(int word)
L
Linus Torvalds 已提交
523
{
524
	__asm__ ("clz %0, %1" : "=r" (word) : "r" (word));
525

526
	return 32 - word;
L
Linus Torvalds 已提交
527 528
}

529 530
#if defined(CONFIG_64BIT) && defined(CONFIG_CPU_MIPS64)
static inline int fls64(__u64 word)
531
{
532 533 534
	__asm__ ("dclz %0, %1" : "=r" (word) : "r" (word));

	return 64 - word;
535
}
536 537 538
#else
#include <asm-generic/bitops/fls64.h>
#endif
539 540

/*
541
 * ffs - find first bit set.
542 543
 * @word: The word to search
 *
544 545 546
 * This is defined the same way as
 * the libc and compiler builtin ffs routines, therefore
 * differs in spirit from the above ffz (man ffs).
547
 */
548
static inline int ffs(int word)
549
{
550 551
	if (!word)
		return 0;
552

553
	return fls(word & -word);
554 555
}

556
#else
L
Linus Torvalds 已提交
557

558 559 560
#include <asm-generic/bitops/__ffs.h>
#include <asm-generic/bitops/ffs.h>
#include <asm-generic/bitops/fls.h>
561
#include <asm-generic/bitops/fls64.h>
L
Linus Torvalds 已提交
562

563
#endif /*defined(CONFIG_CPU_MIPS32) || defined(CONFIG_CPU_MIPS64) */
L
Linus Torvalds 已提交
564

565
#include <asm-generic/bitops/ffz.h>
566
#include <asm-generic/bitops/find.h>
L
Linus Torvalds 已提交
567 568 569

#ifdef __KERNEL__

570 571 572 573 574
#include <asm-generic/bitops/sched.h>
#include <asm-generic/bitops/hweight.h>
#include <asm-generic/bitops/ext2-non-atomic.h>
#include <asm-generic/bitops/ext2-atomic.h>
#include <asm-generic/bitops/minix.h>
L
Linus Torvalds 已提交
575 576 577 578

#endif /* __KERNEL__ */

#endif /* _ASM_BITOPS_H */