]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commitdiff
cpuidle: declare cpuidle_dev in cpuidle.h
authorPaul Burton <paul.burton@imgtec.com>
Wed, 8 Jan 2014 11:23:35 +0000 (11:23 +0000)
committerPaul Burton <paul.burton@imgtec.com>
Wed, 28 May 2014 15:20:35 +0000 (16:20 +0100)
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>
include/linux/cpuidle.h

index b0238cba440b4d80606b40db4effb5ebcea110a5..99cbd7a74e9f4c485dc518f75f3e757a14f24285 100644 (file)
@@ -84,6 +84,7 @@ struct cpuidle_device {
 };
 
 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