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

Commit 12d28814 authored by Krishna Manikandan's avatar Krishna Manikandan Committed by Gerrit - the friendly Code Review server
Browse files

disp: msm: add notifier support for 144fps



Add support to notify the refresh rate to
scheduler for 144 fps panels also.

Change-Id: I57a5a79d40f5d7e2f4ccde278ffe52c7170c5ccc
Signed-off-by: default avatarKrishna Manikandan <mkrishn@codeaurora.org>
parent d0f5c748
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;