From: David Howells Date: Wed, 5 Nov 2008 17:38:47 +0000 (+0000) Subject: Fix accidental implicit cast in HR-timer conversion X-Git-Tag: v2.6.28-rc4~32 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7597bc94d6f3bdccb086ac7f2ad91292fdaee2a4;p=pandora-kernel.git Fix accidental implicit cast in HR-timer conversion Fix the hrtimer_add_expires_ns() function. It should take a 'u64 ns' argument, but rather takes an 'unsigned long ns' argument - which might only be 32-bits. On FRV, this results in the kernel locking up because hrtimer_forward() passes the result of a 64-bit multiplication to this function, for which the compiler discards the top 32-bits - something that didn't happen when ktime_add_ns() was called directly. Signed-off-by: David Howells Acked-by: Arjan van de Ven Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed