Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 8417
b: refs/heads/master
c: 310b587
h: refs/heads/master
i:
  8415: 3936d83
v: v3
  • Loading branch information
Nishanth Aravamudan authored and Linus Torvalds committed Sep 10, 2005
1 parent 8bf03c5 commit aefb9af
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 18 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: 52e6e6308801697ae8e59e7a577f9ca71231a35c
refs/heads/master: 310b587e011ce02328c8e4c29eccd9f14d9007c5
17 changes: 2 additions & 15 deletions trunk/arch/mips/kernel/irixsig.c
Original file line number Diff line number Diff line change
Expand Up @@ -440,18 +440,6 @@ struct irix5_siginfo {
} stuff;
};

static inline unsigned long timespectojiffies(struct timespec *value)
{
unsigned long sec = (unsigned) value->tv_sec;
long nsec = value->tv_nsec;

if (sec > (LONG_MAX / HZ))
return LONG_MAX;
nsec += 1000000000L / HZ - 1;
nsec /= 1000000000L / HZ;
return HZ * sec + nsec;
}

asmlinkage int irix_sigpoll_sys(unsigned long *set, struct irix5_siginfo *info,
struct timespec *tp)
{
Expand Down Expand Up @@ -489,14 +477,13 @@ asmlinkage int irix_sigpoll_sys(unsigned long *set, struct irix5_siginfo *info,
error = -EINVAL;
goto out;
}
expire = timespectojiffies(tp)+(tp->tv_sec||tp->tv_nsec);
expire = timespec_to_jiffies(tp) + (tp->tv_sec||tp->tv_nsec);
}

while(1) {
long tmp = 0;

current->state = TASK_INTERRUPTIBLE;
expire = schedule_timeout(expire);
expire = schedule_timeout_interruptible(expire);

for (i=0; i<=4; i++)
tmp |= (current->pending.signal.sig[i] & kset.sig[i]);
Expand Down
3 changes: 1 addition & 2 deletions trunk/arch/mips/kernel/sysirix.c
Original file line number Diff line number Diff line change
Expand Up @@ -1032,8 +1032,7 @@ asmlinkage int irix_lseek64(int fd, int _unused, int offhi, int offlow,

asmlinkage int irix_sginap(int ticks)
{
current->state = TASK_INTERRUPTIBLE;
schedule_timeout(ticks);
schedule_timeout_interruptible(ticks);
return 0;
}

Expand Down

0 comments on commit aefb9af

Please sign in to comment.