[PATCH] PCI:pciehp:remove unnecessary volatile in struct controller

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: tom.leiming
Date: Sunday, July 13, 2008 - 3:46 am

From: Ming Lei <tom.leiming@gmail.com>

Proper memory barriers have been added to order accesses
to ->cmd_busy, so volatile declaration for cmd_busy can
be removed.

Signed-off-by: Ming Lei <tom.leiming@gmail.com>
---
 drivers/pci/hotplug/pciehp.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/pci/hotplug/pciehp.h b/drivers/pci/hotplug/pciehp.h
index 79c9dda..5e2becd 100644
--- a/drivers/pci/hotplug/pciehp.h
+++ b/drivers/pci/hotplug/pciehp.h
@@ -96,7 +96,7 @@ struct controller {
 	u32 slot_cap;
 	u8 cap_base;
 	struct timer_list poll_timer;
-	volatile int cmd_busy;
+	int cmd_busy;
 	unsigned int no_cmd_complete:1;
 };
 
-- 
1.5.6.rc2.45.gdc92c

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] PCI:pciehp:remove unnecessary volatile in struct c ..., tom.leiming, (Sun Jul 13, 3:46 am)