mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
posix-timers: Cleanup restart_block usage
posix timers still use the legacy arg0-arg3 members of restart_block. Use restart_block.nanosleep instead Signed-off-by: Thomas Gleixner <[email protected]> Acked-by: John Stultz <[email protected]> Tested-by: Richard Cochran <[email protected]> LKML-Reference: <[email protected]>
This commit is contained in:
parent
59bd5bc24a
commit
3751f9f29b
2 changed files with 16 additions and 24 deletions
|
|
@ -1034,7 +1034,7 @@ SYSCALL_DEFINE4(clock_nanosleep, const clockid_t, which_clock, int, flags,
|
|||
*/
|
||||
long clock_nanosleep_restart(struct restart_block *restart_block)
|
||||
{
|
||||
clockid_t which_clock = restart_block->arg0;
|
||||
clockid_t which_clock = restart_block->nanosleep.index;
|
||||
struct k_clock *kc = clockid_to_kclock(which_clock);
|
||||
|
||||
if (WARN_ON_ONCE(!kc || !kc->nsleep_restart))
|
||||
|
|
|
|||
Loading…
Reference in a new issue