diff options
author | Martin Baulig <martin@home-of-linux.org> | 1999-01-06 19:26:45 +0000 |
---|---|---|
committer | Martin Baulig <martin@src.gnome.org> | 1999-01-06 19:26:45 +0000 |
commit | e491343151ffad543e8d7430d57857ce1209a0d4 (patch) | |
tree | 24e07469d5d4c48edb59f39231aeda43c5a98bce /sysdeps/linux/open.c | |
parent | 688e65fbec4cfdea2c28e7b2fb3a20e24abb8924 (diff) | |
download | libgtop-e491343151ffad543e8d7430d57857ce1209a0d4.tar.gz |
Unconditionally enable SMP support for linux.
1999-01-06 Martin Baulig <martin@home-of-linux.org>
Unconditionally enable SMP support for linux.
* open.c (_glibtop_open_s): Always determine the number of CPUs
we have here, not only when SMP support was enabled.
* cpu.c, proctime.c: Use `server->ncpu' to determine whether to
enable SMP support.
Diffstat (limited to 'sysdeps/linux/open.c')
-rw-r--r-- | sysdeps/linux/open.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/sysdeps/linux/open.c b/sysdeps/linux/open.c index af51e9e3..54aef7d7 100644 --- a/sysdeps/linux/open.c +++ b/sysdeps/linux/open.c @@ -59,10 +59,8 @@ glibtop_open_s (glibtop *server, const char *program_name, const unsigned long features, const unsigned flags) { -#ifdef HAVE_LIBGTOP_SMP char buffer [BUFSIZ], *p; int fd, len, i; -#endif server->name = program_name; @@ -71,7 +69,6 @@ glibtop_open_s (glibtop *server, const char *program_name, server->ncpu = 0; -#ifdef HAVE_LIBGTOP_SMP fd = open (FILENAME, O_RDONLY); if (fd < 0) glibtop_error_io_r (server, "open (%s)", FILENAME); @@ -99,6 +96,4 @@ glibtop_open_s (glibtop *server, const char *program_name, #if DEBUG printf ("\nThis machine has %d CPUs.\n\n", server->ncpu); #endif - -#endif } |