mirror of
https://gitee.com/bianbu-linux/linux-6.6
synced 2025-04-26 14:17:26 -04:00
y2038: move itimer reset into itimer.c
Preparing for a change to the itimer internals, stop using the do_setitimer() symbol and instead use a new higher-level interface. The do_getitimer()/do_setitimer functions can now be made static, allowing the compiler to potentially produce better object code. Reviewed-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
This commit is contained in:
parent
4c22ea2b91
commit
ddbc7d0657
3 changed files with 21 additions and 13 deletions
|
@ -35,10 +35,11 @@ extern time64_t mktime64(const unsigned int year, const unsigned int mon,
|
|||
extern u32 (*arch_gettimeoffset)(void);
|
||||
#endif
|
||||
|
||||
struct itimerval;
|
||||
extern int do_setitimer(int which, struct itimerval *value,
|
||||
struct itimerval *ovalue);
|
||||
extern int do_getitimer(int which, struct itimerval *value);
|
||||
#ifdef CONFIG_POSIX_TIMERS
|
||||
extern void clear_itimer(void);
|
||||
#else
|
||||
static inline void clear_itimer(void) {}
|
||||
#endif
|
||||
|
||||
extern long do_utimes(int dfd, const char __user *filename, struct timespec64 *times, int flags);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue