X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=arch%2Fsh64%2Fkernel%2Ftime.c;h=0773c9f389f3b14798b8f912e009b0503c103d2d;hb=987b0145d94eecf292d8b301228356f44611ab7c;hp=6b8f4d22abc69a2b2d49118281cb7f04cdb63e85;hpb=f7ed79d23a47594e7834d66a8f14449796d4f3e6;p=linux-2.6.git diff --git a/arch/sh64/kernel/time.c b/arch/sh64/kernel/time.c index 6b8f4d22a..0773c9f38 100644 --- a/arch/sh64/kernel/time.c +++ b/arch/sh64/kernel/time.c @@ -30,7 +30,6 @@ #include #include #include -#include #include /* required by inline __asm__ stmt. */ @@ -106,6 +105,14 @@ #define RCR1 rtc_base+0x38 #define RCR2 rtc_base+0x3c +#ifndef BCD_TO_BIN +#define BCD_TO_BIN(val) ((val)=((val)&15) + ((val)>>4)*10) +#endif + +#ifndef BIN_TO_BCD +#define BIN_TO_BCD(val) ((val)=(((val)/10)<<4) + (val)%10) +#endif + #define TICK_SIZE (tick_nsec / 1000) extern unsigned long wall_jiffies;