Revision e501f29c727dea74e2124c584cbab5fa805d489b authored by Linus Torvalds on 20 July 2011, 04:50:21 UTC, committed by Linus Torvalds on 20 July 2011, 04:50:21 UTC
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs-2.6:
  vfs: fix race in rcu lookup of pruned dentry
  Fix cifs_get_root()

[ Edited the last commit to get rid of a 'unused variable "seq"'
  warning due to Al editing the patch.  - Linus ]
2 parent s 3a5c374 + 5943026
Raw File
reciprocal_div.c
#include <asm/div64.h>
#include <linux/reciprocal_div.h>

u32 reciprocal_value(u32 k)
{
	u64 val = (1LL << 32) + (k - 1);
	do_div(val, k);
	return (u32)val;
}
back to top