Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 248897
b: refs/heads/master
c: bab1ff1
h: refs/heads/master
i:
  248895: a92d837
v: v3
  • Loading branch information
Alan Stern authored and Greg Kroah-Hartman committed May 19, 2011
1 parent b462d70 commit 5f917ab
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 13 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8452c6745e74384e7e434144f989ada3eae41170
refs/heads/master: bab1ff1bda27e654dfd382a1fbdfcda1f7ed0a37
14 changes: 2 additions & 12 deletions trunk/drivers/usb/host/uhci-hcd.h
Original file line number Diff line number Diff line change
Expand Up @@ -168,12 +168,7 @@ struct uhci_qh {
* We need a special accessor for the element pointer because it is
* subject to asynchronous updates by the controller.
*/
static inline __le32 qh_element(struct uhci_qh *qh) {
__le32 element = qh->element;

barrier();
return element;
}
#define qh_element(qh) ACCESS_ONCE((qh)->element)

#define LINK_TO_QH(qh) (UHCI_PTR_QH | cpu_to_le32((qh)->dma_handle))

Expand Down Expand Up @@ -263,12 +258,7 @@ struct uhci_td {
* We need a special accessor for the control/status word because it is
* subject to asynchronous updates by the controller.
*/
static inline u32 td_status(struct uhci_td *td) {
__le32 status = td->status;

barrier();
return le32_to_cpu(status);
}
#define td_status(td) le32_to_cpu(ACCESS_ONCE((td)->status))

#define LINK_TO_TD(td) (cpu_to_le32((td)->dma_handle))

Expand Down

0 comments on commit 5f917ab

Please sign in to comment.