Revision eab5e7a79d1bb3d607dabf022bfad9f46d1e3ac8 authored by Max Filippov on 10 December 2012, 21:26:23 UTC, committed by Chris Zankel on 19 December 2012, 05:10:25 UTC
XCHAL_CP_NUM is defined in variant/tie.h and it is not included by head.S, leaving CPENABLE register uninitialised. XCHAL_HAVE_CP is defined in variant/core.h to 1 when core has CPENABLE SR. Signed-off-by: Max Filippov <jcmvbkbc@gmail.com> Signed-off-by: Chris Zankel <chris@zankel.net>
1 parent 79fcf52
reciprocal_div.c
#include <asm/div64.h>
#include <linux/reciprocal_div.h>
#include <linux/export.h>
u32 reciprocal_value(u32 k)
{
u64 val = (1LL << 32) + (k - 1);
do_div(val, k);
return (u32)val;
}
EXPORT_SYMBOL(reciprocal_value);
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...