Re: [PATCH] EHCI interrupt transactions failing during CPU frequency changes
Alan Stern <[email protected]>
| Newsgroups | gmane.linux.usb.devel |
|---|---|
| Message-ID | <[email protected]> |
On Tue, 20 Feb 2007 [email protected] wrote: ... > This patch turns off periodic list processing in the EHCI controller for > the duration of processor frequency changes. > > Signed-off-by: Stuart Hayes <[email protected]> > +#define __type_entry(ptr,type,member) ((type *)((char *)(ptr)-offsetof(type,member))) > + > +static int ehci_cpufreq_notifier(struct notifier_block *nb, unsigned long val, > + void *data) > +{ > + struct ehci_hcd *ehci = __type_entry(nb, struct ehci_hcd, > + cpufreq_transition); There already is a standard container_of() macro to do this. Alan Stern ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ [email protected] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel