PC-9800 subarch. support for 2.5.64-ac3 (5/20) core update

PC-9800 subarch. support for 2.5.64-ac3 (5/20) core update

Post by Osamu Tomit » Mon, 10 Mar 2003 06:20:08



This is the patch to support NEC PC-9800 subarchitecture
against 2.5.64-ac3. (5/20)

Updates core patches for PC98.
 - topology.c: remove NUMA code.
 - setup_arch_pre.h: change tick_usec, tick_nsec to extern.

Regards,
Osamu Tomita

diff -Nru linux-2.5.64-ac1/arch/i386/mach-pc9800/topology.c linux98-2.5.64/arch/i386/mach-pc9800/topology.c
--- linux-2.5.64-ac1/arch/i386/mach-pc9800/topology.c   2003-03-07 08:51:59.000000000 +0900

 /*
- * arch/i386/mach-generic/topology.c - Populate driverfs with topology information
+ * arch/i386/mach-pc9800/topology.c - Populate driverfs with topology information
  *
  * Written by: Matthew Dobson, IBM Corporation

  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  *


+ *
  */
 #include <linux/init.h>

 struct i386_cpu cpu_devices[NR_CPUS];

-#ifdef CONFIG_NUMA
-#include <linux/mmzone.h>
-#include <asm/node.h>
-#include <asm/memblk.h>
-
-struct i386_node node_devices[MAX_NUMNODES];
-struct i386_memblk memblk_devices[MAX_NR_MEMBLKS];
-
-static int __init topology_init(void)
-{
-       int i;
-
-       for (i = 0; i < num_online_nodes(); i++)
-               arch_register_node(i);
-       for (i = 0; i < NR_CPUS; i++)
-               if (cpu_possible(i)) arch_register_cpu(i);
-       for (i = 0; i < num_online_memblks(); i++)
-               arch_register_memblk(i);
-       return 0;
-}
-
-#else /* !CONFIG_NUMA */
-
 static int __init topology_init(void)
 {

        return 0;
 }

-#endif /* CONFIG_NUMA */
-
 subsys_initcall(topology_init);
diff -Nru linux-2.5.64-ac1/include/asm-i386/mach-pc9800/setup_arch_pre.h linux98-2.5.64/include/asm-i386/mach-pc9800/setup_arch_pre.h
--- linux-2.5.64-ac1/include/asm-i386/mach-pc9800/setup_arch_pre.h      2003-03-07 08:52:10.000000000 +0900

 #include <asm/pc9800_sca.h>

 int CLOCK_TICK_RATE;
-unsigned long tick_usec;       /* ACTHZ          period (usec) */
-unsigned long tick_nsec;       /* USER_HZ period (nsec) */
+extern unsigned long tick_usec;        /* ACTHZ          period (usec) */
+extern unsigned long tick_nsec;        /* USER_HZ period (nsec) */
 unsigned char pc9800_misc_flags;
 /* (bit 0) 1:High Address Video ram exists 0:otherwise */

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/