Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 94066
b: refs/heads/master
c: 037f436
h: refs/heads/master
v: v3
  • Loading branch information
S.Caglar Onur authored and Linus Torvalds committed Apr 28, 2008
1 parent 6cfcd62 commit 341cbc0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 95d193a90335b4e39dd1f750f1fc1672339ff487
refs/heads/master: 037f436f525dac36c9f5fd5c5054518a63debb3e
5 changes: 3 additions & 2 deletions trunk/arch/alpha/kernel/traps.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
* This file initializes the trap entry points
*/

#include <linux/jiffies.h>
#include <linux/mm.h>
#include <linux/sched.h>
#include <linux/tty.h>
Expand Down Expand Up @@ -770,7 +771,7 @@ do_entUnaUser(void __user * va, unsigned long opcode,
unsigned long reg, struct pt_regs *regs)
{
static int cnt = 0;
static long last_time = 0;
static unsigned long last_time;

unsigned long tmp1, tmp2, tmp3, tmp4;
unsigned long fake_reg, *reg_addr = &fake_reg;
Expand All @@ -781,7 +782,7 @@ do_entUnaUser(void __user * va, unsigned long opcode,
with the unaliged access. */

if (!test_thread_flag (TIF_UAC_NOPRINT)) {
if (cnt >= 5 && jiffies - last_time > 5*HZ) {
if (cnt >= 5 && time_after(jiffies, last_time + 5 * HZ)) {
cnt = 0;
}
if (++cnt < 5) {
Expand Down

0 comments on commit 341cbc0

Please sign in to comment.