diff options
author | Ingo Molnar <mingo@kernel.org> | 2012-04-13 03:57:10 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2012-04-13 03:57:10 -0400 |
commit | a385ec4f11bdcf81af094c03e2444ee9b7fad2e5 (patch) | |
tree | a2c186cb828e3713c2ec48a4d7191166fb798b3d /include/linux/kernel.h | |
parent | 659c36fcda403013a01b85da07cf2d9711e6d6c7 (diff) | |
parent | 0034102808e0dbbf3a2394b82b1bb40b5778de9e (diff) |
Merge tag 'v3.4-rc2' into perf/core
Merge Linux 3.4-rc2: we were on v3.3, update the base.
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'include/linux/kernel.h')
-rw-r--r-- | include/linux/kernel.h | 21 |
1 files changed, 2 insertions, 19 deletions
diff --git a/include/linux/kernel.h b/include/linux/kernel.h index 92c10262d346..645231c373c8 100644 --- a/include/linux/kernel.h +++ b/include/linux/kernel.h | |||
@@ -1,6 +1,8 @@ | |||
1 | #ifndef _LINUX_KERNEL_H | 1 | #ifndef _LINUX_KERNEL_H |
2 | #define _LINUX_KERNEL_H | 2 | #define _LINUX_KERNEL_H |
3 | 3 | ||
4 | #include <linux/sysinfo.h> | ||
5 | |||
4 | /* | 6 | /* |
5 | * 'kernel.h' contains some often-used function prototypes etc | 7 | * 'kernel.h' contains some often-used function prototypes etc |
6 | */ | 8 | */ |
@@ -701,27 +703,8 @@ static inline void ftrace_dump(enum ftrace_dump_mode oops_dump_mode) { } | |||
701 | # define REBUILD_DUE_TO_FTRACE_MCOUNT_RECORD | 703 | # define REBUILD_DUE_TO_FTRACE_MCOUNT_RECORD |
702 | #endif | 704 | #endif |
703 | 705 | ||
704 | struct sysinfo; | ||
705 | extern int do_sysinfo(struct sysinfo *info); | 706 | extern int do_sysinfo(struct sysinfo *info); |
706 | 707 | ||
707 | #endif /* __KERNEL__ */ | 708 | #endif /* __KERNEL__ */ |
708 | 709 | ||
709 | #define SI_LOAD_SHIFT 16 | ||
710 | struct sysinfo { | ||
711 | long uptime; /* Seconds since boot */ | ||
712 | unsigned long loads[3]; /* 1, 5, and 15 minute load averages */ | ||
713 | unsigned long totalram; /* Total usable main memory size */ | ||
714 | unsigned long freeram; /* Available memory size */ | ||
715 | unsigned long sharedram; /* Amount of shared memory */ | ||
716 | unsigned long bufferram; /* Memory used by buffers */ | ||
717 | unsigned long totalswap; /* Total swap space size */ | ||
718 | unsigned long freeswap; /* swap space still available */ | ||
719 | unsigned short procs; /* Number of current processes */ | ||
720 | unsigned short pad; /* explicit padding for m68k */ | ||
721 | unsigned long totalhigh; /* Total high memory size */ | ||
722 | unsigned long freehigh; /* Available high memory size */ | ||
723 | unsigned int mem_unit; /* Memory unit size in bytes */ | ||
724 | char _f[20-2*sizeof(long)-sizeof(int)]; /* Padding: libc5 uses this.. */ | ||
725 | }; | ||
726 | |||
727 | #endif | 710 | #endif |