summaryrefslogtreecommitdiffstats
path: root/src/vppinfra/linux/sysfs.h
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2018-10-22 13:01:46 +0200
committerDamjan Marion <dmarion@me.com>2018-10-22 13:01:19 +0000
commit6f3f1cbf7760efb17c5754c3dbccdefd433675cb (patch)
tree72d67fe93dbed7ef98676eb1e9250eb9d7c366b2 /src/vppinfra/linux/sysfs.h
parent68b7cb8febb2ad7123f165f9db10d3ffc3b409fe (diff)
vppinfra: use log2 page size in hugepage functions
Change-Id: Ibec32c6df32f4cd9889d378e244f170c93ad295b Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/vppinfra/linux/sysfs.h')
-rw-r--r--src/vppinfra/linux/sysfs.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/vppinfra/linux/sysfs.h b/src/vppinfra/linux/sysfs.h
index 6c80cf95dbb..5f5eec2d07a 100644
--- a/src/vppinfra/linux/sysfs.h
+++ b/src/vppinfra/linux/sysfs.h
@@ -25,15 +25,15 @@ clib_error_t *clib_sysfs_read (char *file_name, char *fmt, ...);
u8 *clib_sysfs_link_to_name (char *link);
clib_error_t *clib_sysfs_set_nr_hugepages (int numa_node,
- int page_size, int nr);
+ int log2_page_size, int nr);
clib_error_t *clib_sysfs_get_nr_hugepages (int numa_node,
- int page_size, int *v);
+ int log2_page_size, int *v);
clib_error_t *clib_sysfs_get_free_hugepages (int numa_node,
- int page_size, int *v);
+ int log2_page_size, int *v);
clib_error_t *clib_sysfs_get_surplus_hugepages (int numa_node,
- int page_size, int *v);
+ int log2_page_size, int *v);
clib_error_t *clib_sysfs_prealloc_hugepages (int numa_node,
- int page_size, int nr);
+ int log2_page_size, int nr);
#endif /* included_linux_sysfs_h */