Title: [290719] trunk/Source/bmalloc
- Revision
- 290719
- Author
- basuke.suz...@sony.com
- Date
- 2022-03-01 22:05:31 -0800 (Tue, 01 Mar 2022)
Log Message
[libpas] Add missing PlayStation implementation.
https://bugs.webkit.org/show_bug.cgi?id=237341
Reviewed by Yusuke Suzuki.
* libpas/src/libpas/pas_monotonic_time.c:
(pas_get_current_monotonic_time_nanoseconds):
Modified Paths
Diff
Modified: trunk/Source/bmalloc/ChangeLog (290718 => 290719)
--- trunk/Source/bmalloc/ChangeLog 2022-03-02 06:03:13 UTC (rev 290718)
+++ trunk/Source/bmalloc/ChangeLog 2022-03-02 06:05:31 UTC (rev 290719)
@@ -1,3 +1,13 @@
+2022-03-01 Basuke Suzuki <basuke.suz...@sony.com>
+
+ [libpas] Add missing PlayStation implementation.
+ https://bugs.webkit.org/show_bug.cgi?id=237341
+
+ Reviewed by Yusuke Suzuki.
+
+ * libpas/src/libpas/pas_monotonic_time.c:
+ (pas_get_current_monotonic_time_nanoseconds):
+
2022-02-25 Basuke Suzuki <basuke.suz...@sony.com>
[libpas] Suppress cast-align warnings
Modified: trunk/Source/bmalloc/libpas/src/libpas/pas_monotonic_time.c (290718 => 290719)
--- trunk/Source/bmalloc/libpas/src/libpas/pas_monotonic_time.c 2022-03-02 06:03:13 UTC (rev 290718)
+++ trunk/Source/bmalloc/libpas/src/libpas/pas_monotonic_time.c 2022-03-02 06:05:31 UTC (rev 290719)
@@ -80,6 +80,15 @@
return ts.tv_sec * 1.0e9 + ts.tv_nsec;
}
+#elif PAS_PLATFORM(PLAYSTATION)
+
+uint64_t pas_get_current_monotonic_time_nanoseconds(void)
+{
+ struct timespec ts;
+ clock_gettime_np(CLOCK_MONOTONIC_FAST, &ts);
+ return ts.tv_sec * 1000u * 1000u * 1000u + ts.tv_nsec;
+}
+
#endif
#endif /* LIBPAS_ENABLED */
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes