mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-05-02 18:17:50 -04:00
cpuidle: declare cpuidle_dev in cpuidle.h
Declaring this allows drivers which need to initialise each struct cpuidle_device at initialisation time to make use of the structures already defined in cpuidle.c, rather than having to wastefully define their own. Signed-off-by: Paul Burton <paul.burton@imgtec.com>
This commit is contained in:
@@ -84,6 +84,7 @@ struct cpuidle_device {
|
|||||||
};
|
};
|
||||||
|
|
||||||
DECLARE_PER_CPU(struct cpuidle_device *, cpuidle_devices);
|
DECLARE_PER_CPU(struct cpuidle_device *, cpuidle_devices);
|
||||||
|
DECLARE_PER_CPU(struct cpuidle_device, cpuidle_dev);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* cpuidle_get_last_residency - retrieves the last state's residency time
|
* cpuidle_get_last_residency - retrieves the last state's residency time
|
||||||
|
|||||||
Reference in New Issue
Block a user