mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-07-16 16:27:27 +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>
29 lines
1.1 KiB
Diff
29 lines
1.1 KiB
Diff
Upstream-Status: Pending
|
|
|
|
implement timer for arm >= v6
|
|
|
|
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
|
|
@@ -164,6 +164,20 @@ static inline tokutime_t toku_time_now(v
|
|
struct timeval tv;
|
|
gettimeofday(&tv, nullptr);
|
|
return (uint64_t)tv.tv_sec * 1000000 + tv.tv_usec;
|
|
+#elif (__ARM_ARCH >= 6)
|
|
+ uint32_t pmccntr;
|
|
+ uint32_t pmuseren;
|
|
+ uint32_t pmcntenset;
|
|
+ // Read the user mode perf monitor counter access permissions.
|
|
+ asm volatile("mrc p15, 0, %0, c9, c14, 0" : "=r"(pmuseren));
|
|
+ if (pmuseren & 1) { // Allows reading perfmon counters for user mode code.
|
|
+ asm volatile("mrc p15, 0, %0, c9, c12, 1" : "=r"(pmcntenset));
|
|
+ if (pmcntenset & 0x80000000ul) { // Is it counting?
|
|
+ asm volatile("mrc p15, 0, %0, c9, c13, 0" : "=r"(pmccntr));
|
|
+ // The counter is set up to count every 64th cycle
|
|
+ return (uint64_t)pmccntr * 64; // Should optimize to << 6
|
|
+ }
|
|
+ }
|
|
#else
|
|
#error No timer implementation for this platform
|
|
#endif
|