summaryrefslogtreecommitdiffstats
path: root/src/hardware/sysfs.h
diff options
context:
space:
mode:
authorPeter Schiffer <pschiffe@redhat.com>2014-05-09 17:37:40 +0200
committerPeter Schiffer <pschiffe@redhat.com>2014-05-12 19:20:43 +0200
commit28aed3c2c360b84762f76b322e9fc80bd74c036b (patch)
tree880f68596cbaf7e0e020a6f116c3e789cd4fd60a /src/hardware/sysfs.h
parent87a03ac7ebff779351e9782d40e691221195f8e0 (diff)
downloadopenlmi-providers-28aed3c2c360b84762f76b322e9fc80bd74c036b.tar.gz
openlmi-providers-28aed3c2c360b84762f76b322e9fc80bd74c036b.tar.xz
openlmi-providers-28aed3c2c360b84762f76b322e9fc80bd74c036b.zip
Hardware: spring cleanup & refactor
* use openlmi common library where possible * get rid of LMI_Hardware.h file * some other cosmetic changes
Diffstat (limited to 'src/hardware/sysfs.h')
-rw-r--r--src/hardware/sysfs.h8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/hardware/sysfs.h b/src/hardware/sysfs.h
index 2714e2b..4137033 100644
--- a/src/hardware/sysfs.h
+++ b/src/hardware/sysfs.h
@@ -21,14 +21,10 @@
#ifndef SYSFS_H_
#define SYSFS_H_
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
#include <dirent.h>
-#include <errno.h>
-#include <limits.h>
#include <sys/stat.h>
#include <sys/types.h>
+
#include "utils.h"
#include "dmidecode.h"
#include "lscpu.h"
@@ -38,7 +34,6 @@
#define SYSFS_KERNEL_MM "/sys/kernel/mm"
#define SYSFS_BLOCK_PATH "/sys/class/block"
-
/* Transparent memory huge pages statuses. */
typedef enum _ThpStatus {
thp_unsupported = 0,
@@ -111,5 +106,4 @@ short sysfs_get_sizes_of_hugepages(unsigned **sizes, unsigned *sizes_nb);
*/
ThpStatus sysfs_get_transparent_hugepages_status();
-
#endif /* SYSFS_H_ */