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

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

Merge "mmc: core: Use PF_MEMALLOC flag for clock scaling context"

parents 23264e5d 58e2c4ec
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -470,6 +470,10 @@ static int mmc_devfreq_set_target(struct device *dev,
	struct mmc_devfeq_clk_scaling *clk_scaling;
	int err = 0;
	int abort;
	unsigned long pflags = current->flags;

	/* Ensure scaling would happen even in memory pressure conditions */
	current->flags |= PF_MEMALLOC;

	if (!(host && freq)) {
		pr_err("%s: unexpected host/freq parameter\n", __func__);
@@ -528,6 +532,7 @@ static int mmc_devfreq_set_target(struct device *dev,
	mmc_host_clk_release(host);
	mmc_release_host(host);
out:
	tsk_restore_flags(current, pflags, PF_MEMALLOC);
	return err;
}