diff options
Diffstat (limited to 'arch/powerpc/kernel/vdso32')
-rw-r--r-- | arch/powerpc/kernel/vdso32/gettimeofday.S | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/powerpc/kernel/vdso32/gettimeofday.S b/arch/powerpc/kernel/vdso32/gettimeofday.S index 05909f754307..72ca26df457e 100644 --- a/arch/powerpc/kernel/vdso32/gettimeofday.S +++ b/arch/powerpc/kernel/vdso32/gettimeofday.S | |||
@@ -32,6 +32,8 @@ V_FUNCTION_BEGIN(__kernel_gettimeofday) | |||
32 | mr r11,r4 /* r11 saves tz */ | 32 | mr r11,r4 /* r11 saves tz */ |
33 | bl __get_datapage@local /* get data page */ | 33 | bl __get_datapage@local /* get data page */ |
34 | mr r9, r3 /* datapage ptr in r9 */ | 34 | mr r9, r3 /* datapage ptr in r9 */ |
35 | cmplwi r10,0 /* check if tv is NULL */ | ||
36 | beq 3f | ||
35 | bl __do_get_xsec@local /* get xsec from tb & kernel */ | 37 | bl __do_get_xsec@local /* get xsec from tb & kernel */ |
36 | bne- 2f /* out of line -> do syscall */ | 38 | bne- 2f /* out of line -> do syscall */ |
37 | 39 | ||
@@ -50,7 +52,7 @@ V_FUNCTION_BEGIN(__kernel_gettimeofday) | |||
50 | mulhwu r5,r5,r6 | 52 | mulhwu r5,r5,r6 |
51 | stw r5,TVAL32_TV_USEC(r10) | 53 | stw r5,TVAL32_TV_USEC(r10) |
52 | 54 | ||
53 | cmpli cr0,r11,0 /* check if tz is NULL */ | 55 | 3: cmplwi r11,0 /* check if tz is NULL */ |
54 | beq 1f | 56 | beq 1f |
55 | lwz r4,CFG_TZ_MINUTEWEST(r9)/* fill tz */ | 57 | lwz r4,CFG_TZ_MINUTEWEST(r9)/* fill tz */ |
56 | lwz r5,CFG_TZ_DSTTIME(r9) | 58 | lwz r5,CFG_TZ_DSTTIME(r9) |