From: "Krzysztof Helt" <krzysztof.h1@wp.pl>
To: sparclinux@vger.kernel.org
Subject: [PATCH] sparc32: small smp cleanup
Date: Sat, 12 Aug 2006 13:23:48 +0000 [thread overview]
Message-ID: <44ddd664b387e@wp.pl> (raw)
[-- Attachment #1: Type: text/plain, Size: 501 bytes --]
From: Krzysztof Helt (krzysztof.h1@wp.pl)
It moves the smp_procesors_ready variable to sun4d_smp.c only.
Signed-off-by: Krzysztof Helt (krzysztof.h1@wp.pl)
---
smp_processors_ready is not really used in sun4m_smp.c. Let the
sun4d guys remove it.
I tested it on SS20 and 2.6.18-rc4 kernel.
----------------------------------------------------
Czy 10 minut rozmowy = ponad 11 zł oszczędności ?
Sprawdź: http://klik.wp.pl/?adr=http%3A%2F%2Ftelefon.wp.pl%2Foszczednosci.html&sid=842
[-- Attachment #2: sparc32-cpus-ready-removal.patch --]
[-- Type: application/octet-stream, Size: 1723 bytes --]
diff -urp linux-2.6.17/arch/sparc/kernel/smp.c linux-new/arch/sparc/kernel/smp.c
--- linux-2.6.17/arch/sparc/kernel/smp.c 2006-08-10 08:58:31.000000000 +0200
+++ linux-new/arch/sparc/kernel/smp.c 2006-08-12 08:09:49.000000000 +0200
@@ -34,7 +34,6 @@
#include <asm/tlbflush.h>
#include <asm/cpudata.h>
-volatile int smp_processors_ready = 0;
int smp_num_cpus = 1;
volatile unsigned long cpu_callin_map[NR_CPUS] __initdata = {0,};
unsigned char boot_cpu_id = 0;
diff -urp linux-2.6.17/arch/sparc/kernel/sun4d_smp.c linux-new/arch/sparc/kernel/sun4d_smp.c
--- linux-2.6.17/arch/sparc/kernel/sun4d_smp.c 2006-08-10 08:58:31.000000000 +0200
+++ linux-new/arch/sparc/kernel/sun4d_smp.c 2006-08-12 08:12:48.000000000 +0200
@@ -42,7 +42,7 @@ extern ctxd_t *srmmu_ctx_table_phys;
extern void calibrate_delay(void);
-extern volatile int smp_processors_ready;
+volatile int smp_processors_ready = 0;
static int smp_highest_cpu;
extern volatile unsigned long cpu_callin_map[NR_CPUS];
extern cpuinfo_sparc cpu_data[NR_CPUS];
diff -urp linux-2.6.17/arch/sparc/kernel/sun4m_smp.c linux-new/arch/sparc/kernel/sun4m_smp.c
--- linux-2.6.17/arch/sparc/kernel/sun4m_smp.c 2006-08-09 22:36:10.000000000 +0200
+++ linux-new/arch/sparc/kernel/sun4m_smp.c 2006-08-12 08:10:19.000000000 +0200
@@ -39,7 +39,6 @@ extern ctxd_t *srmmu_ctx_table_phys;
extern void calibrate_delay(void);
-extern volatile int smp_processors_ready;
extern volatile unsigned long cpu_callin_map[NR_CPUS];
extern unsigned char boot_cpu_id;
@@ -217,7 +216,6 @@ void __init smp4m_smp_done(void)
}
/* Ok, they are spinning and ready to go. */
- smp_processors_ready = 1;
}
/* At each hardware IRQ, we get this called to forward IRQ reception
next reply other threads:[~2006-08-12 13:23 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-08-12 13:23 Krzysztof Helt [this message]
2006-08-25 23:22 ` [PATCH] sparc32: small smp cleanup David Miller
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=44ddd664b387e@wp.pl \
--to=krzysztof.h1@wp.pl \
--cc=sparclinux@vger.kernel.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.