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.
This commit is contained in:
Martin Baulig
1999-01-06 19:26:45 +00:00
committed by Martin Baulig
parent 688e65fbec
commit e491343151
4 changed files with 20 additions and 19 deletions

View File

@@ -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
}