patch-2.1.116 linux/arch/alpha/kernel/smp.c
Next file: linux/arch/alpha/kernel/sys_alcor.c
Previous file: linux/arch/alpha/kernel/setup.c
Back to the patch index
Back to the overall index
- Lines: 29
- Date:
Sun Aug 9 12:09:05 1998
- Orig file:
v2.1.115/linux/arch/alpha/kernel/smp.c
- Orig date:
Thu Aug 6 14:06:28 1998
diff -u --recursive --new-file v2.1.115/linux/arch/alpha/kernel/smp.c linux/arch/alpha/kernel/smp.c
@@ -24,6 +24,8 @@
#define __KERNEL_SYSCALLS__
#include <asm/unistd.h>
+#include "proto.h"
+
struct ipi_msg_flush_tb_struct ipi_msg_flush_tb;
struct cpuinfo_alpha cpu_data[NR_CPUS];
@@ -735,15 +737,11 @@
}
}
-static char smp_buf[256];
-
-char *smp_info(void)
+int smp_info(char *buffer)
{
- sprintf(smp_buf, "CPUs probed %d active %d map 0x%x AKP %d\n",
- smp_num_probed, smp_num_cpus, cpu_present_map,
- klock_info.akp);
-
- return smp_buf;
+ return sprintf(buffer, "CPUs probed %d active %d map 0x%x AKP %d\n",
+ smp_num_probed, smp_num_cpus, cpu_present_map,
+ klock_info.akp);
}
/* wrapper for call from panic() */
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov