* [PATCH 7/14] mips: replace timespectojiffies() with timespec_to_jiffies()
[not found] <20050709000324.GD2596@us.ibm.com>
@ 2005-07-09 0:11 ` Nishanth Aravamudan
2005-07-11 14:12 ` Ralf Baechle
0 siblings, 1 reply; 2+ messages in thread
From: Nishanth Aravamudan @ 2005-07-09 0:11 UTC (permalink / raw)
To: ralf; +Cc: linux-mips, Kernel-Janitors
From: Nishanth Aravamudan <nacc@us.ibm.com>
Description: Replace custom timespectojiffies() function with generic
standard one.
Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com>
---
irixsig.c | 14 +-------------
1 files changed, 1 insertion(+), 13 deletions(-)
diff -urp 2.6.13-rc2-kj/arch/mips/kernel/irixsig.c 2.6.13-rc2-kj-dev/arch/mips/kernel/irixsig.c
--- 2.6.13-rc2-kj/arch/mips/kernel/irixsig.c 2005-07-06 07:57:02.000000000 -0700
+++ 2.6.13-rc2-kj-dev/arch/mips/kernel/irixsig.c 2005-07-06 13:30:34.000000000 -0700
@@ -441,18 +441,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)
{
@@ -490,7 +478,7 @@ asmlinkage int irix_sigpoll_sys(unsigned
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) {
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH 7/14] mips: replace timespectojiffies() with timespec_to_jiffies()
2005-07-09 0:11 ` [PATCH 7/14] mips: replace timespectojiffies() with timespec_to_jiffies() Nishanth Aravamudan
@ 2005-07-11 14:12 ` Ralf Baechle
0 siblings, 0 replies; 2+ messages in thread
From: Ralf Baechle @ 2005-07-11 14:12 UTC (permalink / raw)
To: Nishanth Aravamudan; +Cc: linux-mips, Kernel-Janitors
On Fri, Jul 08, 2005 at 05:11:27PM -0700, Nishanth Aravamudan wrote:
> Description: Replace custom timespectojiffies() function with generic
> standard one.
Applied. Thanks,
Ralf
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-07-11 14:11 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20050709000324.GD2596@us.ibm.com>
2005-07-09 0:11 ` [PATCH 7/14] mips: replace timespectojiffies() with timespec_to_jiffies() Nishanth Aravamudan
2005-07-11 14:12 ` Ralf Baechle
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox