summaryrefslogtreecommitdiff
path: root/drivers/cpuidle
diff options
context:
space:
mode:
authorRussell King - ARM Linux <linux@arm.linux.org.uk>2011-01-04 01:38:32 +0300
committerDan Williams <dan.j.williams@intel.com>2011-01-05 06:16:12 +0300
commitdb9f136a60c8727c8e1c9c4f2494821caebf5a7b (patch)
treed5311b870e634541e787a680d6d77bf9865f9645 /drivers/cpuidle
parentbfddfb45056fa95a778f0baf463ac0f9fc926d5c (diff)
downloadlinux-db9f136a60c8727c8e1c9c4f2494821caebf5a7b.tar.xz
ARM: PL08x: clean up LLI lookup
As the LLI list is an array, we can use maths to locate which LLI index we're currently at, and then sum up the remaining LLI entries until we reach the end of the list. This makes the code much easier to read, and much less susceptible to falling off the end of the array. Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk> Acked-by: Linus Walleij <linus.walleij@stericsson.com> Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'drivers/cpuidle')
0 files changed, 0 insertions, 0 deletions