Loading drivers/devfreq/governor_performance.c +17 −4 Original line number Diff line number Diff line Loading @@ -32,13 +32,26 @@ static int devfreq_performance_handler(struct devfreq *devfreq, unsigned int event, void *data) { int ret = 0; unsigned long freq; if (event == DEVFREQ_GOV_START || event == DEVFREQ_GOV_RESUME) { mutex_lock(&devfreq->lock); freq = devfreq->previous_freq; switch (event) { case DEVFREQ_GOV_START: devfreq->profile->target(devfreq->dev.parent, &freq, DEVFREQ_FLAG_WAKEUP_MAXFREQ); /* fall through */ case DEVFREQ_GOV_RESUME: ret = update_devfreq(devfreq); mutex_unlock(&devfreq->lock); break; case DEVFREQ_GOV_SUSPEND: devfreq->profile->target(devfreq->dev.parent, &freq, DEVFREQ_FLAG_WAKEUP_MAXFREQ); break; } mutex_unlock(&devfreq->lock); return ret; } Loading include/linux/devfreq.h +1 −0 Original line number Diff line number Diff line Loading @@ -51,6 +51,7 @@ struct devfreq_dev_status { * bound (greatest lower bound) */ #define DEVFREQ_FLAG_LEAST_UPPER_BOUND 0x1 #define DEVFREQ_FLAG_WAKEUP_MAXFREQ 0x2 #define DEVFREQ_FLAG_FAST_HINT 0x2 #define DEVFREQ_FLAG_SLOW_HINT 0x4 Loading Loading
drivers/devfreq/governor_performance.c +17 −4 Original line number Diff line number Diff line Loading @@ -32,13 +32,26 @@ static int devfreq_performance_handler(struct devfreq *devfreq, unsigned int event, void *data) { int ret = 0; unsigned long freq; if (event == DEVFREQ_GOV_START || event == DEVFREQ_GOV_RESUME) { mutex_lock(&devfreq->lock); freq = devfreq->previous_freq; switch (event) { case DEVFREQ_GOV_START: devfreq->profile->target(devfreq->dev.parent, &freq, DEVFREQ_FLAG_WAKEUP_MAXFREQ); /* fall through */ case DEVFREQ_GOV_RESUME: ret = update_devfreq(devfreq); mutex_unlock(&devfreq->lock); break; case DEVFREQ_GOV_SUSPEND: devfreq->profile->target(devfreq->dev.parent, &freq, DEVFREQ_FLAG_WAKEUP_MAXFREQ); break; } mutex_unlock(&devfreq->lock); return ret; } Loading
include/linux/devfreq.h +1 −0 Original line number Diff line number Diff line Loading @@ -51,6 +51,7 @@ struct devfreq_dev_status { * bound (greatest lower bound) */ #define DEVFREQ_FLAG_LEAST_UPPER_BOUND 0x1 #define DEVFREQ_FLAG_WAKEUP_MAXFREQ 0x2 #define DEVFREQ_FLAG_FAST_HINT 0x2 #define DEVFREQ_FLAG_SLOW_HINT 0x4 Loading