mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-07-17 04:37:19 +00:00
be8c765c7c
There is new patch-status QA check in oe-core: https://git.openembedded.org/openembedded-core/commit/?id=76a685bfcf927593eac67157762a53259089ea8a This is temporary work around just to hide _many_ warnings from optional patch-status (if you add it to WARN_QA). This just added Upstream-Status: Pending everywhere without actually investigating what's the proper status. This is just to hide current QA warnings and to catch new .patch files being added without Upstream-Status, but the number of Pending patches is now terrible: 5 (26%) meta-xfce 6 (50%) meta-perl 15 (42%) meta-webserver 21 (36%) meta-gnome 25 (57%) meta-filesystems 26 (43%) meta-initramfs 45 (45%) meta-python 47 (55%) meta-multimedia 312 (63%) meta-networking 756 (61%) meta-oe Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
21 lines
763 B
Diff
21 lines
763 B
Diff
Upstream-Status: Pending
|
|
|
|
implement timer implementation for mips platform
|
|
|
|
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
--- a/utilities/transactions/lock/range/range_tree/lib/portability/toku_time.h
|
|
+++ b/utilities/transactions/lock/range/range_tree/lib/portability/toku_time.h
|
|
@@ -158,6 +158,12 @@ static inline tokutime_t toku_time_now(v
|
|
uint64_t cycles;
|
|
asm volatile("rdcycle %0" : "=r"(cycles));
|
|
return cycles;
|
|
+#elif defined(__mips__)
|
|
+ // mips apparently only allows rdtsc for superusers, so we fall
|
|
+ // back to gettimeofday. It's possible clock_gettime would be better.
|
|
+ struct timeval tv;
|
|
+ gettimeofday(&tv, nullptr);
|
|
+ return (uint64_t)tv.tv_sec * 1000000 + tv.tv_usec;
|
|
#else
|
|
#error No timer implementation for this platform
|
|
#endif
|