Skip to contentSkip to conversation

usb: xhci: force all memory allocations to node

PATCH Superseded Adam Wallis 1 participant 1 message May 23, 2018 USB

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 usb: xhci: force all memory allocations to node

Quoted 8 lines · Timur Tabi
Quoted 1 line · Adam Wallis

+    struct device *dev = xhci_to_hcd(xhci)->self.sysdev;

Since you only use 'dev' to get the NUMA node, you might want to consider this instead:

    int node = dev_to_node(xhci_to_hcd(xhci)->self.sysdev);

My original thinking with using dev was such that future functionality might use dev...in fact one of the functions already had dev exposed. However, I don't feel strongly about this. I will go with whatever Mathias prefers.