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

Commit dd1f091e authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "disp: msm: add notifier support for 144fps"

parents b0c6efc0 12d28814
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
// SPDX-License-Identifier: GPL-2.0-only
/*
 * Copyright (c) 2019, The Linux Foundation. All rights reserved.
 * Copyright (c) 2019-2020, The Linux Foundation. All rights reserved.
 */

#include <linux/kernel.h>
@@ -51,10 +51,11 @@ static int msm_notifier_fps_chg_callback(struct notifier_block *nb,
	/*
	 * Get ceiling of fps from notifier data to pass to scheduler.
	 * Default will be FPS60 and sent to scheduler during suspend.
	 * Currently scheduler expects FPS120 for any fps over 90.
	 */
	fps = notifier_data->refresh_rate;
	if (fps > FPS90)
	if (fps > FPS120)
		sched_fps = FPS144;
	else if (fps > FPS90)
		sched_fps = FPS120;
	else if (fps > FPS60)
		sched_fps = FPS90;