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

Commit d77e23ac authored by John Stultz's avatar John Stultz
Browse files

alarmtimers: Remove interval cap limit hack



Now that the alarmtimers code has been refactored, the interval
cap limit can be removed.

CC: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: default avatarJohn Stultz <john.stultz@linaro.org>
parent dce75a8c
Loading
Loading
Loading
Loading
+0 −9
Original line number Diff line number Diff line
@@ -525,15 +525,6 @@ static int alarm_timer_set(struct k_itimer *timr, int flags,
	if (!rtcdev)
		return -ENOTSUPP;

	/*
	 * XXX HACK! Currently we can DOS a system if the interval
	 * period on alarmtimers is too small. Cap the interval here
	 * to 100us and solve this properly in a future patch! -jstultz
	 */
	if ((new_setting->it_interval.tv_sec == 0) &&
			(new_setting->it_interval.tv_nsec < 100000))
		new_setting->it_interval.tv_nsec = 100000;

	if (old_setting)
		alarm_timer_get(timr, old_setting);