diff options
| author | John Stultz <john.stultz@linaro.org> | 2011-08-10 14:40:23 -0400 |
|---|---|---|
| committer | John Stultz <john.stultz@linaro.org> | 2011-08-10 17:55:24 -0400 |
| commit | d77e23accec56bf2ba12187fe77a2f500a511282 (patch) | |
| tree | f6d875739df0e4c9b48628ce2eaad8581eb736b1 /kernel/time/alarmtimer.c | |
| parent | dce75a8c71819ed4c7efdcd53c9b6f6356dc8cb5 (diff) | |
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: John Stultz <john.stultz@linaro.org>
Diffstat (limited to 'kernel/time/alarmtimer.c')
| -rw-r--r-- | kernel/time/alarmtimer.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/kernel/time/alarmtimer.c b/kernel/time/alarmtimer.c index f03b04291b6..a522c007e6f 100644 --- a/kernel/time/alarmtimer.c +++ b/kernel/time/alarmtimer.c | |||
| @@ -525,15 +525,6 @@ static int alarm_timer_set(struct k_itimer *timr, int flags, | |||
| 525 | if (!rtcdev) | 525 | if (!rtcdev) |
| 526 | return -ENOTSUPP; | 526 | return -ENOTSUPP; |
| 527 | 527 | ||
| 528 | /* | ||
| 529 | * XXX HACK! Currently we can DOS a system if the interval | ||
| 530 | * period on alarmtimers is too small. Cap the interval here | ||
| 531 | * to 100us and solve this properly in a future patch! -jstultz | ||
| 532 | */ | ||
| 533 | if ((new_setting->it_interval.tv_sec == 0) && | ||
| 534 | (new_setting->it_interval.tv_nsec < 100000)) | ||
| 535 | new_setting->it_interval.tv_nsec = 100000; | ||
| 536 | |||
| 537 | if (old_setting) | 528 | if (old_setting) |
| 538 | alarm_timer_get(timr, old_setting); | 529 | alarm_timer_get(timr, old_setting); |
| 539 | 530 | ||
