tree 4ec5ef085c011a582454f4a6df2705f4ce339ca3
parent 6f354b014b51716166f13f68b29212d3c44ed2c4
author Prarit Bhargava <[EMAIL PROTECTED]> Thu, 07 Jul 2005 05:30:25 -0700
committer Tony Luck <[EMAIL PROTECTED]> Thu, 07 Jul 2005 05:30:25 -0700
[IA64] hotplug/ia64: 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.
Signed-off-by: Prarit Bhargava <[EMAIL PROTECTED]>
Signed-off-by: Tony Luck <[EMAIL PROTECTED]>
include/asm-ia64/sn/pcibr_provider.h | 3 ++-
1 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/include/asm-ia64/sn/pcibr_provider.h
b/include/asm-ia64/sn/pcibr_provider.h
--- a/include/asm-ia64/sn/pcibr_provider.h
+++ b/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;
};
/*
-
To unsubscribe from this list: send the line "unsubscribe bk-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html