Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f08dbf8a authored by Paul Burton's avatar Paul Burton
Browse files

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: default avatarPaul Burton <paul.burton@imgtec.com>
parent c095ebaf
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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