alarmtimers: Remove interval cap limit hack
authorJohn Stultz <john.stultz@linaro.org>
Wed, 10 Aug 2011 18:40:23 +0000 (11:40 -0700)
committerJohn Stultz <john.stultz@linaro.org>
Wed, 10 Aug 2011 21:55:24 +0000 (14:55 -0700)
Now that the alarmtimers code has been refactored, the interval
cap limit can be removed.

CC: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: John Stultz <john.stultz@linaro.org>
kernel/time/alarmtimer.c

index f03b04291b6fde23a7c529093eea08d5e3a2d44d..a522c007e6fda479f16f9bd2ea8a9459b16f21ef 100644 (file)
@@ -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);