From: Andrey Panin <pazke@orbita1.ru>
To: linux-kernel@vger.kernel.org
Cc: Linus Torvalds <torvalds@transmeta.com>
Subject: [PATCH] cleanup mach-visws/mpparse.c
Date: Fri, 4 Apr 2003 14:08:17 +0400 [thread overview]
Message-ID: <20030404100817.GD964@pazke> (raw)
[-- Attachment #1: Type: text/plain, Size: 230 bytes --]
Hi,
this trivial patch (2.5.66) removes some now unused data
structures from mach-visws/mpparse.c
Please apply.
Best regards.
--
Andrey Panin | Embedded systems software developer
pazke@orbita1.ru | PGP key: wwwkeys.pgp.net
[-- Attachment #2: patch-visws-cleanup --]
[-- Type: text/plain, Size: 1827 bytes --]
diff -urN -X /usr/share/dontdiff linux-2.5.66.vanilla/arch/i386/mach-visws/mpparse.c linux-2.5.66/arch/i386/mach-visws/mpparse.c
--- linux-2.5.66.vanilla/arch/i386/mach-visws/mpparse.c Mon Mar 31 13:37:22 2003
+++ linux-2.5.66/arch/i386/mach-visws/mpparse.c Sun Mar 16 16:28:01 2003
@@ -4,8 +4,6 @@
#include <linux/smp.h>
#include <asm/smp.h>
-#include <asm/apic.h>
-#include <asm/mpspec.h>
#include <asm/io.h>
#include "cobalt.h"
@@ -19,21 +17,6 @@
* MP-table.
*/
int apic_version [MAX_APICS];
-int mp_bus_id_to_type [MAX_MP_BUSSES];
-int mp_bus_id_to_node [MAX_MP_BUSSES];
-int mp_bus_id_to_pci_bus [MAX_MP_BUSSES] = { [0 ... MAX_MP_BUSSES-1] = -1 };
-int mp_current_pci_id;
-
-/* I/O APIC entries */
-struct mpc_config_ioapic mp_ioapics[MAX_IO_APICS];
-
-/* # of MP IRQ source entries */
-struct mpc_config_intsrc mp_irqs[MAX_IRQ_SOURCES];
-
-/* MP IRQ source entries */
-int mp_irq_entries;
-
-int nr_ioapics;
int pic_mode;
unsigned long mp_lapic_addr;
@@ -42,13 +25,9 @@
unsigned int boot_cpu_physical_apicid = -1U;
unsigned int boot_cpu_logical_apicid = -1U;
-/* Internal processor count */
-static unsigned int num_processors;
-
/* Bitmask of physically existing CPUs */
unsigned long phys_cpu_present_map;
-u8 raw_phys_apicid[NR_CPUS] = { [0 ... NR_CPUS - 1] = BAD_APICID };
/*
* The Visual Workstation is Intel MP compliant in the hardware
@@ -76,12 +55,9 @@
boot_cpu_logical_apicid = logical_apicid;
}
- num_processors++;
-
if (m->mpc_apicid > MAX_APICS) {
printk(KERN_ERR "Processor #%d INVALID. (Max ID: %d).\n",
m->mpc_apicid, MAX_APICS);
- --num_processors;
return;
}
ver = m->mpc_apicver;
@@ -97,7 +73,6 @@
ver = 0x10;
}
apic_version[m->mpc_apicid] = ver;
- raw_phys_apicid[num_processors - 1] = m->mpc_apicid;
}
void __init find_smp_config(void)
reply other threads:[~2003-04-04 9:57 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20030404100817.GD964@pazke \
--to=pazke@orbita1.ru \
--cc=linux-kernel@vger.kernel.org \
--cc=torvalds@transmeta.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox