From: Stefan Richter Date: Sat, 20 Feb 2010 21:24:43 +0000 (+0100) Subject: firewire: get_cycle_timer optimization and cleanup X-Git-Tag: v2.6.34-rc1~219^2~17 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4a9bde9b8ab55a2bb51b57cad215a97bcf80bae2;p=pandora-kernel.git firewire: get_cycle_timer optimization and cleanup ohci: Break out of the retry loop if too many attempts were necessary. This may theoretically happen if the chip is fatally defective or if the get_cycle_timer ioctl was performed after a CardBus controller was ejected. Also micro-optimize the loop by re-using the last two register reads in the next iteration, remove a questionable inline keyword, and shuffle a comment around. core: ioctl_get_cycle_timer() is always called with interrupts on, therefore local_irq_save() can be replaced by local_irq_disable(). Disabled local IRQs imply disabled preemption, hence preempt_disable() can be removed. Signed-off-by: Stefan Richter --- Reading git-diff-tree failed