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

Commit ded2e631 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "cpufreq: add CPUFREQ_INCOMPATIBLE event in policy notifiers"

parents d8730dbf 5ccbfa3e
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -2316,6 +2316,11 @@ static int cpufreq_set_policy(struct cpufreq_policy *policy,
	blocking_notifier_call_chain(&cpufreq_policy_notifier_list,
			CPUFREQ_ADJUST, new_policy);

	/* adjust if necessary - hardware incompatibility */
	blocking_notifier_call_chain(&cpufreq_policy_notifier_list,
			CPUFREQ_INCOMPATIBLE, new_policy);


	/*
	 * verify the cpu speed can be set within this limit, which might be
	 * different to the first one
+1 −0
Original line number Diff line number Diff line
@@ -425,6 +425,7 @@ static inline void cpufreq_resume(void) {}
#define CPUFREQ_CREATE_POLICY		(3)
#define CPUFREQ_REMOVE_POLICY		(4)
#define CPUFREQ_STOP			(5)
#define CPUFREQ_INCOMPATIBLE		(6)

/* Govinfo Notifiers */
#define CPUFREQ_LOAD_CHANGE		(0)