mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
posix-timers: Make nanosleep timespec argument const
No nanosleep implementation modifies the rqtp argument. Mark is const. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Cc: Al Viro <viro@zeniv.linux.org.uk> Cc: John Stultz <john.stultz@linaro.org> Cc: Peter Zijlstra <peterz@infradead.org>
This commit is contained in:
parent
343d8fc208
commit
938e7cf2d5
6 changed files with 8 additions and 8 deletions
|
@ -1328,7 +1328,7 @@ static int do_cpu_nanosleep(const clockid_t which_clock, int flags,
|
|||
static long posix_cpu_nsleep_restart(struct restart_block *restart_block);
|
||||
|
||||
static int posix_cpu_nsleep(const clockid_t which_clock, int flags,
|
||||
struct timespec64 *rqtp)
|
||||
const struct timespec64 *rqtp)
|
||||
{
|
||||
struct restart_block *restart_block = ¤t->restart_block;
|
||||
int error;
|
||||
|
@ -1383,7 +1383,7 @@ static int process_cpu_timer_create(struct k_itimer *timer)
|
|||
return posix_cpu_timer_create(timer);
|
||||
}
|
||||
static int process_cpu_nsleep(const clockid_t which_clock, int flags,
|
||||
struct timespec64 *rqtp)
|
||||
const struct timespec64 *rqtp)
|
||||
{
|
||||
return posix_cpu_nsleep(PROCESS_CLOCK, flags, rqtp);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue