Skip to contentSkip to conversation

: SN Hotplug Driver - PREEMPT/pcibus_info fix

PATCH New Prarit Bhargava 1 participant 1 message May 2, 2005

lore
Share & tools
lore
#0 lore raw

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

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.

 pcibr_provider.h |    3 ++-
 1 files changed, 2 insertions(+), 1 deletion(-)
include/asm-ia64/sn/pcibr_provider.h +2 -1
diff -urNp hp/include/asm-ia64/sn/pcibr_provider.h final/include/asm-ia64/sn/pcibr_provider.h
@@ -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;
 };
 
 /*