Skip to content

Commit bae314d

Browse files
dlezcanorafaeljw
authored andcommitted
cpuidle: Remove pointless stub
The cpuidle.h header is declaring a function with an empty stub for the cpuidle disabled case, but that function is only called by cpuidle governors which depend on cpuidle anyway. In other words, the function is only called when cpuidle is enabled, so there is no need for the stub. Remove the pointless stub. Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org> [ rjw: Changelog edits ] Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
1 parent 8bb2e2a commit bae314d

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

include/linux/cpuidle.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -271,13 +271,8 @@ struct cpuidle_governor {
271271
void (*reflect) (struct cpuidle_device *dev, int index);
272272
};
273273

274-
#ifdef CONFIG_CPU_IDLE
275274
extern int cpuidle_register_governor(struct cpuidle_governor *gov);
276275
extern s64 cpuidle_governor_latency_req(unsigned int cpu);
277-
#else
278-
static inline int cpuidle_register_governor(struct cpuidle_governor *gov)
279-
{return 0;}
280-
#endif
281276

282277
#define __CPU_PM_CPU_IDLE_ENTER(low_level_idle_enter, \
283278
idx, \

0 commit comments

Comments
 (0)