bitops.h 683 B

123456789101112131415161718192021222324252627
  1. /*
  2. * Copyright (C) 2006 Atmark Techno, Inc.
  3. *
  4. * This file is subject to the terms and conditions of the GNU General Public
  5. * License. See the file "COPYING" in the main directory of this archive
  6. * for more details.
  7. */
  8. #ifndef _ASM_MICROBLAZE_BITOPS_H
  9. #define _ASM_MICROBLAZE_BITOPS_H
  10. /*
  11. * Copyright 1992, Linus Torvalds.
  12. */
  13. #include <asm/byteorder.h> /* swab32 */
  14. #include <asm/system.h> /* save_flags */
  15. /*
  16. * clear_bit() doesn't provide any barrier for the compiler.
  17. */
  18. #define smp_mb__before_clear_bit() barrier()
  19. #define smp_mb__after_clear_bit() barrier()
  20. #include <asm-generic/bitops.h>
  21. #include <asm-generic/bitops/__fls.h>
  22. #endif /* _ASM_MICROBLAZE_BITOPS_H */