mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
y2038: sparc: remove use of struct timex
'struct timex' is one of the last users of 'struct timeval' and is only referenced in one place in the kernel any more, to convert the user space timex into the kernel-internal version on sparc64, with a different tv_usec member type. As a preparation for hiding the time_t definition and everything using that in the kernel, change the implementation once more to only convert the timeval member, and then enclose the struct definition in an #ifdef. Signed-off-by: Arnd Bergmann <arnd@arndb.de>
This commit is contained in:
parent
4f9fbd893f
commit
251ec1c159
2 changed files with 19 additions and 16 deletions
|
@ -57,6 +57,7 @@
|
|||
|
||||
#define NTP_API 4 /* NTP API version */
|
||||
|
||||
#ifndef __KERNEL__
|
||||
/*
|
||||
* syscall interface - used (mainly by NTP daemon)
|
||||
* to discipline kernel clock oscillator
|
||||
|
@ -91,6 +92,7 @@ struct timex {
|
|||
int :32; int :32; int :32; int :32;
|
||||
int :32; int :32; int :32;
|
||||
};
|
||||
#endif
|
||||
|
||||
struct __kernel_timex_timeval {
|
||||
__kernel_time64_t tv_sec;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue