[PATCH 6/6]: SN Hotplug Driver - PREEMPT/pcibus_info fix

From: Prarit Bhargava <prarit_at_sgi.com>
Date: 2005-05-02 22:50:30
This patch fixes an issue with the PROM and a kernel running with
CONFIG_PREEMPT enabled.  When CONFIG_PREEMPT is enabled, the size of a
spinlock_t changes -- resulting in the PROM writing to an incorrect location.

Signed-off-by: Prarit Bhargava <prarit@sgi.com>

 pcibr_provider.h |    3 ++-
 1 files changed, 2 insertions(+), 1 deletion(-)

diff -urNp hp/include/asm-ia64/sn/pcibr_provider.h final/include/asm-ia64/sn/pcibr_provider.h
--- hp/include/asm-ia64/sn/pcibr_provider.h	2027-04-28 13:30:25.000000000 -0400
+++ final/include/asm-ia64/sn/pcibr_provider.h	2027-04-28 13:31:08.000000000 -0400
@@ -108,10 +108,11 @@ struct pcibus_info {
 	char                    pbi_hub_xid;
 
 	uint64_t                pbi_devreg[8];
-	spinlock_t              pbi_lock;
 
 	uint32_t		pbi_valid_devices;
 	uint32_t		pbi_enabled_devices;
+
+	spinlock_t              pbi_lock;
 };
 
 /*

-
To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Received on Mon May 2 08:52:46 2005

This archive was generated by hypermail 2.1.8 : 2005-08-02 09:20:38 EST