Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 263654
b: refs/heads/master
c: 6af7e47
h: refs/heads/master
v: v3
  • Loading branch information
John Stultz committed Aug 10, 2011
1 parent 908112e commit afe98a4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ea7802f630d356acaf66b3c0b28c00a945fc35dc
refs/heads/master: 6af7e471e5a7746b8024d70b4363d3dfe41d36b8
9 changes: 9 additions & 0 deletions trunk/kernel/time/alarmtimer.c
Original file line number Diff line number Diff line change
Expand Up @@ -481,6 +481,15 @@ 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);

Expand Down

0 comments on commit afe98a4

Please sign in to comment.