mirror of
https://github.com/Qortal/Brooklyn.git
synced 2025-02-07 14:54:17 +00:00
Changes included (and more): 1. Dynamic RAM merge 2. Real-time page scan and allocation 3. Cache compression 4. Real-time IRQ checks 5. Dynamic I/O allocation for Java heap 6. Java page migration 7. Contiguous memory allocation 8. Idle pages tracking 9. Per CPU RAM usage tracking 10. ARM NEON scalar multiplication library 11. NEON/ARMv8 crypto extensions 12. NEON SHA, Blake, RIPEMD crypto extensions 13. Parallel NEON crypto engine for multi-algo based CPU stress reduction
50 lines
1.3 KiB
C
50 lines
1.3 KiB
C
// SPDX-License-Identifier: GPL-2.0
|
|
/*
|
|
* Powerpc userspace implementations of gettimeofday() and similar.
|
|
*/
|
|
#include <linux/time.h>
|
|
#include <linux/types.h>
|
|
|
|
#ifdef __powerpc64__
|
|
int __c_kernel_clock_gettime(clockid_t clock, struct __kernel_timespec *ts,
|
|
const struct vdso_data *vd)
|
|
{
|
|
return __cvdso_clock_gettime_data(vd, clock, ts);
|
|
}
|
|
|
|
int __c_kernel_clock_getres(clockid_t clock_id, struct __kernel_timespec *res,
|
|
const struct vdso_data *vd)
|
|
{
|
|
return __cvdso_clock_getres_data(vd, clock_id, res);
|
|
}
|
|
#else
|
|
int __c_kernel_clock_gettime(clockid_t clock, struct old_timespec32 *ts,
|
|
const struct vdso_data *vd)
|
|
{
|
|
return __cvdso_clock_gettime32_data(vd, clock, ts);
|
|
}
|
|
|
|
int __c_kernel_clock_gettime64(clockid_t clock, struct __kernel_timespec *ts,
|
|
const struct vdso_data *vd)
|
|
{
|
|
return __cvdso_clock_gettime_data(vd, clock, ts);
|
|
}
|
|
|
|
int __c_kernel_clock_getres(clockid_t clock_id, struct old_timespec32 *res,
|
|
const struct vdso_data *vd)
|
|
{
|
|
return __cvdso_clock_getres_time32_data(vd, clock_id, res);
|
|
}
|
|
#endif
|
|
|
|
int __c_kernel_gettimeofday(struct __kernel_old_timeval *tv, struct timezone *tz,
|
|
const struct vdso_data *vd)
|
|
{
|
|
return __cvdso_gettimeofday_data(vd, tv, tz);
|
|
}
|
|
|
|
__kernel_old_time_t __c_kernel_time(__kernel_old_time_t *time, const struct vdso_data *vd)
|
|
{
|
|
return __cvdso_time_data(vd, time);
|
|
}
|