hrtimer: add nanosleep specific restart_block member
The back and forth typecasting of restart_block->args is horrible. We added a separate union member for futex already. Do the same for nanosleep. Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
This commit is contained in:
Родитель
4b119e21d0
Коммит
a332d86d3c
|
@ -9,6 +9,9 @@
|
||||||
|
|
||||||
#include <linux/types.h>
|
#include <linux/types.h>
|
||||||
|
|
||||||
|
struct timespec;
|
||||||
|
struct compat_timespec;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* System call restart block.
|
* System call restart block.
|
||||||
*/
|
*/
|
||||||
|
@ -26,6 +29,15 @@ struct restart_block {
|
||||||
u32 bitset;
|
u32 bitset;
|
||||||
u64 time;
|
u64 time;
|
||||||
} futex;
|
} futex;
|
||||||
|
/* For nanosleep */
|
||||||
|
struct {
|
||||||
|
clockid_t index;
|
||||||
|
struct timespec __user *rmtp;
|
||||||
|
#ifdef CONFIG_COMPAT
|
||||||
|
struct compat_timespec __user *compat_rmtp;
|
||||||
|
#endif
|
||||||
|
u64 expires;
|
||||||
|
} nanosleep;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче