Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/torvalds/linux-2.6
[pandora-kernel.git] / arch / tile / include / hv / pagesize.h
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
15 /**
16  * @file pagesize.h
17  */
18
19 #ifndef _HV_PAGESIZE_H
20 #define _HV_PAGESIZE_H
21
22 /** The log2 of the size of small pages, in bytes. This value should
23  * be verified at runtime by calling hv_sysconf(HV_SYSCONF_PAGE_SIZE_SMALL).
24  */
25 #define HV_LOG2_PAGE_SIZE_SMALL 16
26
27 /** The log2 of the size of large pages, in bytes. This value should be
28  * verified at runtime by calling hv_sysconf(HV_SYSCONF_PAGE_SIZE_LARGE).
29  */
30 #define HV_LOG2_PAGE_SIZE_LARGE 24
31
32 #endif /* _HV_PAGESIZE_H */