top: eliminated old kernel-2.4 & 2.5 support (man too)

The newlib informal cutoff for kernel support seems to
be around release 2.6. This commit eliminates any such
support for really old 2.4 and 2.5 kernels within top.

Signed-off-by: Jim Warner <james.warner@comcast.net>
This commit is contained in:
Jim Warner
2015-08-19 00:00:00 -05:00
committed by Craig Small
parent 77dc22b910
commit f937ff8238
5 changed files with 10 additions and 27 deletions

View File

@ -2197,8 +2197,8 @@ static void cpus_refresh (void) {
#define sumSLOT ( Cpu_cnt )
#define totSLOT ( 1 + Cpu_cnt + Numa_node_tot )
static int sav_slot = -1;
int i;
#ifndef NUMA_DISABLE
int i;
int node;
#endif
@ -2919,11 +2919,7 @@ static void before (char *me) {
Cpu_cnt = 8;
#endif
Cpu_faux_cnt = Cpu_cnt;
Cpu_States_fmts = N_unq(STATE_lin2x4_fmt);
if (linux_version_code > LINUX_VERSION(2, 5, 41))
Cpu_States_fmts = N_unq(STATE_lin2x5_fmt);
if (linux_version_code >= LINUX_VERSION(2, 6, 0))
Cpu_States_fmts = N_unq(STATE_lin2x6_fmt);
Cpu_States_fmts = N_unq(STATE_lin2x6_fmt);
if (linux_version_code >= LINUX_VERSION(2, 6, 11))
Cpu_States_fmts = N_unq(STATE_lin2x7_fmt);