Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jmorris...
[linux/fpc-iii.git] / arch / tile / include / asm / module.h
blob44ed07ccd3d2153b0d89a06c54fa89d2302f1393
1 /*
2 * Copyright 2011 Tilera Corporation. All Rights Reserved.
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.
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.
15 #ifndef _ASM_TILE_MODULE_H
16 #define _ASM_TILE_MODULE_H
18 #include <arch/chip.h>
20 #include <asm-generic/module.h>
22 /* We can't use modules built with different page sizes. */
23 #if defined(CONFIG_PAGE_SIZE_16KB)
24 # define MODULE_PGSZ " 16KB"
25 #elif defined(CONFIG_PAGE_SIZE_64KB)
26 # define MODULE_PGSZ " 64KB"
27 #else
28 # define MODULE_PGSZ ""
29 #endif
31 /* We don't really support no-SMP so tag if someone tries. */
32 #ifdef CONFIG_SMP
33 #define MODULE_NOSMP ""
34 #else
35 #define MODULE_NOSMP " nosmp"
36 #endif
38 #define MODULE_ARCH_VERMAGIC CHIP_ARCH_NAME MODULE_PGSZ MODULE_NOSMP
40 #endif /* _ASM_TILE_MODULE_H */