kmap_types.h 1.0 KB

12345678910111213141516171819202122232425262728
  1. /*
  2. * Copyright 2010 Tilera Corporation. All Rights Reserved.
  3. *
  4. * This program is free software; you can redistribute it and/or
  5. * modify it under the terms of the GNU General Public License
  6. * as published by the Free Software Foundation, version 2.
  7. *
  8. * This program is distributed in the hope that it will be useful, but
  9. * WITHOUT ANY WARRANTY; without even the implied warranty of
  10. * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE, GOOD TITLE or
  11. * NON INFRINGEMENT. See the GNU General Public License for
  12. * more details.
  13. */
  14. #ifndef _ASM_TILE_KMAP_TYPES_H
  15. #define _ASM_TILE_KMAP_TYPES_H
  16. /*
  17. * In 32-bit TILE Linux we have to balance the desire to have a lot of
  18. * nested atomic mappings with the fact that large page sizes and many
  19. * processors chew up address space quickly. In a typical
  20. * 64-processor, 64KB-page layout build, making KM_TYPE_NR one larger
  21. * adds 4MB of required address-space. For now we leave KM_TYPE_NR
  22. * set to depth 8.
  23. */
  24. #define KM_TYPE_NR 8
  25. #endif /* _ASM_TILE_KMAP_TYPES_H */