|
@@ -85,15 +85,6 @@ static const struct k_clock clock_realtime, clock_monotonic;
|
|
#error "SIGEV_THREAD_ID must not share bit with other SIGEV values!"
|
|
#error "SIGEV_THREAD_ID must not share bit with other SIGEV values!"
|
|
#endif
|
|
#endif
|
|
|
|
|
|
-/*
|
|
|
|
- * parisc wants ENOTSUP instead of EOPNOTSUPP
|
|
|
|
- */
|
|
|
|
-#ifndef ENOTSUP
|
|
|
|
-# define ENANOSLEEP_NOTSUP EOPNOTSUPP
|
|
|
|
-#else
|
|
|
|
-# define ENANOSLEEP_NOTSUP ENOTSUP
|
|
|
|
-#endif
|
|
|
|
-
|
|
|
|
/*
|
|
/*
|
|
* The timer ID is turned into a timer address by idr_find().
|
|
* The timer ID is turned into a timer address by idr_find().
|
|
* Verifying a valid ID consists of:
|
|
* Verifying a valid ID consists of:
|
|
@@ -1220,7 +1211,7 @@ SYSCALL_DEFINE4(clock_nanosleep, const clockid_t, which_clock, int, flags,
|
|
if (!kc)
|
|
if (!kc)
|
|
return -EINVAL;
|
|
return -EINVAL;
|
|
if (!kc->nsleep)
|
|
if (!kc->nsleep)
|
|
- return -ENANOSLEEP_NOTSUP;
|
|
|
|
|
|
+ return -EOPNOTSUPP;
|
|
|
|
|
|
if (get_timespec64(&t, rqtp))
|
|
if (get_timespec64(&t, rqtp))
|
|
return -EFAULT;
|
|
return -EFAULT;
|
|
@@ -1247,7 +1238,7 @@ COMPAT_SYSCALL_DEFINE4(clock_nanosleep, clockid_t, which_clock, int, flags,
|
|
if (!kc)
|
|
if (!kc)
|
|
return -EINVAL;
|
|
return -EINVAL;
|
|
if (!kc->nsleep)
|
|
if (!kc->nsleep)
|
|
- return -ENANOSLEEP_NOTSUP;
|
|
|
|
|
|
+ return -EOPNOTSUPP;
|
|
|
|
|
|
if (compat_get_timespec64(&t, rqtp))
|
|
if (compat_get_timespec64(&t, rqtp))
|
|
return -EFAULT;
|
|
return -EFAULT;
|