Loading drivers/mmc/core/core.c +6 −0 Original line number Diff line number Diff line Loading @@ -479,12 +479,17 @@ 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__); err = -EINVAL; goto out; } clk_scaling = &host->clk_scaling; if (!clk_scaling->enable) Loading Loading @@ -548,6 +553,7 @@ static int mmc_devfreq_set_target(struct device *dev, rel_host: mmc_release_host(host); out: tsk_restore_flags(current, pflags, PF_MEMALLOC); return err; } Loading Loading
drivers/mmc/core/core.c +6 −0 Original line number Diff line number Diff line Loading @@ -479,12 +479,17 @@ 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__); err = -EINVAL; goto out; } clk_scaling = &host->clk_scaling; if (!clk_scaling->enable) Loading Loading @@ -548,6 +553,7 @@ static int mmc_devfreq_set_target(struct device *dev, rel_host: mmc_release_host(host); out: tsk_restore_flags(current, pflags, PF_MEMALLOC); return err; } Loading