bitops.h 13.5 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
		raw_local_irq_save(flags);
L
Linus Torvalds 已提交
104
		*a |= mask;
105
		raw_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
		raw_local_irq_save(flags);
L
Linus Torvalds 已提交
169
		*a &= ~mask;
170
		raw_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
		raw_local_irq_save(flags);
L
Linus Torvalds 已提交
224
		*a ^= mask;
225
		raw_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
	unsigned short bit = nr & SZLONG_MASK;
241
	unsigned long res;
242

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

		__asm__ __volatile__(
248
		"	.set	mips3					\n"
L
Linus Torvalds 已提交
249 250 251 252 253
		"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"
254
		"	.set	mips0					\n"
L
Linus Torvalds 已提交
255
		: "=&r" (temp), "=m" (*m), "=&r" (res)
256
		: "r" (1UL << bit), "m" (*m)
L
Linus Torvalds 已提交
257 258 259
		: "memory");
	} else if (cpu_has_llsc) {
		unsigned long *m = ((unsigned long *) addr) + (nr >> SZLONG_LOG);
260
		unsigned long temp;
L
Linus Torvalds 已提交
261 262

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

		a += nr >> SZLONG_LOG;
285
		mask = 1UL << bit;
286
		raw_local_irq_save(flags);
287
		res = (mask & *a);
L
Linus Torvalds 已提交
288
		*a |= mask;
289
		raw_local_irq_restore(flags);
L
Linus Torvalds 已提交
290
	}
291 292

	smp_mb();
293 294

	return res != 0;
L
Linus Torvalds 已提交
295 296 297 298 299 300 301 302 303 304 305 306 307
}

/*
 * 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)
{
308
	unsigned short bit = nr & SZLONG_MASK;
309
	unsigned long res;
310

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

		__asm__ __volatile__(
316
		"	.set	mips3					\n"
L
Linus Torvalds 已提交
317 318 319
		"1:	" __LL	"%0, %1		# test_and_clear_bit	\n"
		"	or	%2, %0, %3				\n"
		"	xor	%2, %3					\n"
320
		"	" __SC 	"%2, %1					\n"
L
Linus Torvalds 已提交
321 322
		"	beqzl	%2, 1b					\n"
		"	and	%2, %0, %3				\n"
323
		"	.set	mips0					\n"
L
Linus Torvalds 已提交
324
		: "=&r" (temp), "=m" (*m), "=&r" (res)
325
		: "r" (1UL << bit), "m" (*m)
L
Linus Torvalds 已提交
326
		: "memory");
327 328 329
#ifdef CONFIG_CPU_MIPSR2
	} else if (__builtin_constant_p(nr)) {
		unsigned long *m = ((unsigned long *) addr) + (nr >> SZLONG_LOG);
330
		unsigned long temp;
331 332 333 334 335 336 337 338 339 340 341

		__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)
342
		: "ri" (bit), "m" (*m)
343 344
		: "memory");
#endif
L
Linus Torvalds 已提交
345 346
	} else if (cpu_has_llsc) {
		unsigned long *m = ((unsigned long *) addr) + (nr >> SZLONG_LOG);
347
		unsigned long temp;
L
Linus Torvalds 已提交
348 349

		__asm__ __volatile__(
350 351
		"	.set	push					\n"
		"	.set	noreorder				\n"
352
		"	.set	mips3					\n"
353
		"1:	" __LL	"%0, %1		# test_and_clear_bit	\n"
L
Linus Torvalds 已提交
354 355
		"	or	%2, %0, %3				\n"
		"	xor	%2, %3					\n"
356
		"	" __SC 	"%2, %1					\n"
357
		"	beqz	%2, 2f					\n"
L
Linus Torvalds 已提交
358
		"	 and	%2, %0, %3				\n"
359 360 361 362
		"	.subsection 2					\n"
		"2:	b	1b					\n"
		"	 nop						\n"
		"	.previous					\n"
363
		"	.set	pop					\n"
L
Linus Torvalds 已提交
364
		: "=&r" (temp), "=m" (*m), "=&r" (res)
365
		: "r" (1UL << bit), "m" (*m)
L
Linus Torvalds 已提交
366 367 368 369
		: "memory");
	} else {
		volatile unsigned long *a = addr;
		unsigned long mask;
370
		unsigned long flags;
L
Linus Torvalds 已提交
371 372

		a += nr >> SZLONG_LOG;
373
		mask = 1UL << bit;
374
		raw_local_irq_save(flags);
375
		res = (mask & *a);
L
Linus Torvalds 已提交
376
		*a &= ~mask;
377
		raw_local_irq_restore(flags);
L
Linus Torvalds 已提交
378
	}
379 380

	smp_mb();
381 382

	return res != 0;
L
Linus Torvalds 已提交
383 384 385 386 387 388 389 390 391 392 393 394 395
}

/*
 * 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)
{
396
	unsigned short bit = nr & SZLONG_MASK;
397
	unsigned long res;
398

L
Linus Torvalds 已提交
399 400
	if (cpu_has_llsc && R10000_LLSC_WAR) {
		unsigned long *m = ((unsigned long *) addr) + (nr >> SZLONG_LOG);
401
		unsigned long temp;
L
Linus Torvalds 已提交
402 403

		__asm__ __volatile__(
404
		"	.set	mips3					\n"
405
		"1:	" __LL	"%0, %1		# test_and_change_bit	\n"
L
Linus Torvalds 已提交
406
		"	xor	%2, %0, %3				\n"
407
		"	" __SC	"%2, %1					\n"
L
Linus Torvalds 已提交
408 409
		"	beqzl	%2, 1b					\n"
		"	and	%2, %0, %3				\n"
410
		"	.set	mips0					\n"
L
Linus Torvalds 已提交
411
		: "=&r" (temp), "=m" (*m), "=&r" (res)
412
		: "r" (1UL << bit), "m" (*m)
L
Linus Torvalds 已提交
413 414 415
		: "memory");
	} else if (cpu_has_llsc) {
		unsigned long *m = ((unsigned long *) addr) + (nr >> SZLONG_LOG);
416
		unsigned long temp;
L
Linus Torvalds 已提交
417 418

		__asm__ __volatile__(
419 420
		"	.set	push					\n"
		"	.set	noreorder				\n"
421
		"	.set	mips3					\n"
422
		"1:	" __LL	"%0, %1		# test_and_change_bit	\n"
L
Linus Torvalds 已提交
423
		"	xor	%2, %0, %3				\n"
424
		"	" __SC	"\t%2, %1				\n"
425
		"	beqz	%2, 2f					\n"
L
Linus Torvalds 已提交
426
		"	 and	%2, %0, %3				\n"
427 428 429 430
		"	.subsection 2					\n"
		"2:	b	1b					\n"
		"	 nop						\n"
		"	.previous					\n"
431
		"	.set	pop					\n"
L
Linus Torvalds 已提交
432
		: "=&r" (temp), "=m" (*m), "=&r" (res)
433
		: "r" (1UL << bit), "m" (*m)
L
Linus Torvalds 已提交
434 435 436
		: "memory");
	} else {
		volatile unsigned long *a = addr;
437
		unsigned long mask;
438
		unsigned long flags;
L
Linus Torvalds 已提交
439 440

		a += nr >> SZLONG_LOG;
441
		mask = 1UL << bit;
442
		raw_local_irq_save(flags);
443
		res = (mask & *a);
L
Linus Torvalds 已提交
444
		*a ^= mask;
445
		raw_local_irq_restore(flags);
L
Linus Torvalds 已提交
446
	}
447 448

	smp_mb();
449 450

	return res != 0;
L
Linus Torvalds 已提交
451 452
}

453
#include <asm-generic/bitops/non-atomic.h>
L
Linus Torvalds 已提交
454 455

/*
456
 * Return the bit position (0..63) of the most significant 1 bit in a word
457 458
 * Returns -1 if no 1 bit exists
 */
459
static inline int __ilog2(unsigned long x)
460 461 462
{
	int lz;

463 464 465 466 467 468 469 470
	if (sizeof(x) == 4) {
		__asm__ (
		"	.set	push					\n"
		"	.set	mips32					\n"
		"	clz	%0, %1					\n"
		"	.set	pop					\n"
		: "=r" (lz)
		: "r" (x));
471

472 473 474 475
		return 31 - lz;
	}

	BUG_ON(sizeof(x) != 8);
476 477 478 479 480 481 482 483 484 485 486 487

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

	return 63 - lz;
}

488 489
#if defined(CONFIG_CPU_MIPS32) || defined(CONFIG_CPU_MIPS64)

490 491
/*
 * __ffs - find first bit in word.
L
Linus Torvalds 已提交
492 493
 * @word: The word to search
 *
494 495
 * Returns 0..SZLONG-1
 * Undefined if no bit exists, so code should check against 0 first.
L
Linus Torvalds 已提交
496
 */
497
static inline unsigned long __ffs(unsigned long word)
L
Linus Torvalds 已提交
498
{
499
	return __ilog2(word & -word);
L
Linus Torvalds 已提交
500 501 502
}

/*
503
 * fls - find last bit set.
L
Linus Torvalds 已提交
504 505
 * @word: The word to search
 *
506 507
 * This is defined the same way as ffs.
 * Note fls(0) = 0, fls(1) = 1, fls(0x80000000) = 32.
L
Linus Torvalds 已提交
508
 */
509
static inline int fls(int word)
L
Linus Torvalds 已提交
510
{
511
	__asm__ ("clz %0, %1" : "=r" (word) : "r" (word));
512

513
	return 32 - word;
L
Linus Torvalds 已提交
514 515
}

516 517
#if defined(CONFIG_64BIT) && defined(CONFIG_CPU_MIPS64)
static inline int fls64(__u64 word)
518
{
519 520 521
	__asm__ ("dclz %0, %1" : "=r" (word) : "r" (word));

	return 64 - word;
522
}
523 524 525
#else
#include <asm-generic/bitops/fls64.h>
#endif
526 527

/*
528
 * ffs - find first bit set.
529 530
 * @word: The word to search
 *
531 532 533
 * This is defined the same way as
 * the libc and compiler builtin ffs routines, therefore
 * differs in spirit from the above ffz (man ffs).
534
 */
535
static inline int ffs(int word)
536
{
537 538
	if (!word)
		return 0;
539

540
	return fls(word & -word);
541 542
}

543
#else
L
Linus Torvalds 已提交
544

545 546 547
#include <asm-generic/bitops/__ffs.h>
#include <asm-generic/bitops/ffs.h>
#include <asm-generic/bitops/fls.h>
548
#include <asm-generic/bitops/fls64.h>
L
Linus Torvalds 已提交
549

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

552
#include <asm-generic/bitops/ffz.h>
553
#include <asm-generic/bitops/find.h>
L
Linus Torvalds 已提交
554 555 556

#ifdef __KERNEL__

557 558 559 560 561
#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 已提交
562 563 564 565

#endif /* __KERNEL__ */

#endif /* _ASM_BITOPS_H */