From: H Hartley Sweeten Date: Wed, 19 Feb 2014 17:11:23 +0000 (-0700) Subject: staging: comedi: pcl816: don't calc the timer divisors twice X-Git-Tag: v3.15-rc1~139^2~921 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f23068ec57acd6fb0bf4c69075072350a5ff849a;p=pandora-kernel.git staging: comedi: pcl816: don't calc the timer divisors twice The timer divisors are calculated in the (*do_cmdtest) before the (*do_cmd) is called by the comedi core. The extra sanity checks in the (*do_cmd) are not necessary, the values returned from i8253_cascade_ns_to_timer() will be greater than 1. Save the values in the private data so they don't need to be recalced. Refactor pcl816_start_pacer() to use the values from the private data. Signed-off-by: H Hartley Sweeten Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed