]> git.karo-electronics.de Git - karo-tx-linux.git/commit
cpuidle / sysfs: change function parameter
authorDaniel Lezcano <daniel.lezcano@linaro.org>
Mon, 22 Oct 2012 23:25:29 +0000 (01:25 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 22 Oct 2012 23:25:29 +0000 (01:25 +0200)
commitefeca1b05a1480def3c6d1754c1a192db450ffe4
tree6a56adb677aaec9fb58b8b669b25359e9eb8c984
parent6f0c0580b70c89094b3422ba81118c7b959c7556
cpuidle / sysfs: change function parameter

The function needs the cpuidle_device which is initially passed to the
caller.

The current code gets the struct device from the struct cpuidle_device,
pass it the cpuidle_add_sysfs function. This function calls
per_cpu(cpuidle_devices, cpu) to get the cpuidle_device.

This patch pass the cpuidle_device instead and simplify the code.

Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpuidle/cpuidle.c
drivers/cpuidle/cpuidle.h
drivers/cpuidle/sysfs.c