Skip to content

Commit f08dbf8

Browse files
committed
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>
1 parent c095eba commit f08dbf8

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎include/linux/cpuidle.h‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ struct cpuidle_device {
8484
};
8585

8686
DECLARE_PER_CPU(struct cpuidle_device *, cpuidle_devices);
87+
DECLARE_PER_CPU(struct cpuidle_device, cpuidle_dev);
8788

8889
/**
8990
* cpuidle_get_last_residency - retrieves the last state's residency time

0 commit comments

Comments
 (0)