mirror of https://github.com/OpenIPC/firmware.git
64 lines
1.7 KiB
Diff
64 lines
1.7 KiB
Diff
--- linux-4.9.37/drivers/fence/sw_sync.h 1970-01-01 03:00:00.000000000 +0300
|
|
+++ linux-4.9.y/drivers/fence/sw_sync.h 2021-06-07 13:01:33.000000000 +0300
|
|
@@ -0,0 +1,60 @@
|
|
+/*
|
|
+ * include/linux/sw_sync.h
|
|
+ *
|
|
+ * Copyright (C) 2012 Google, Inc.
|
|
+ *
|
|
+ * This software is licensed under the terms of the GNU General Public
|
|
+ * License version 2, as published by the Free Software Foundation, and
|
|
+ * may be copied, distributed, and modified under those terms.
|
|
+ *
|
|
+ * This program is distributed in the hope that it will be useful,
|
|
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
+ * GNU General Public License for more details.
|
|
+ *
|
|
+ */
|
|
+
|
|
+#ifndef _LINUX_SW_SYNC_H
|
|
+#define _LINUX_SW_SYNC_H
|
|
+
|
|
+#include <linux/types.h>
|
|
+#include <linux/kconfig.h>
|
|
+#include "sync.h"
|
|
+#include "_sw_sync.h"
|
|
+#include <linux/sync_file.h>
|
|
+
|
|
+struct sw_sync_timeline {
|
|
+ struct sync_timeline obj;
|
|
+
|
|
+ u32 value;
|
|
+};
|
|
+
|
|
+struct sw_sync_pt {
|
|
+ struct sync_pt pt;
|
|
+
|
|
+ u32 value;
|
|
+};
|
|
+
|
|
+#if IS_ENABLED(CONFIG_SW_SYNC)
|
|
+struct sw_sync_timeline *bsp_sw_sync_timeline_create(const char *name);
|
|
+void bsp_sw_sync_timeline_inc(struct sw_sync_timeline *obj, u32 inc);
|
|
+
|
|
+struct sync_pt *bsp_sw_sync_pt_create(struct sw_sync_timeline *obj, u32 value);
|
|
+#else
|
|
+static inline struct sw_sync_timeline *bsp_sw_sync_timeline_create(const char *name)
|
|
+{
|
|
+ return NULL;
|
|
+}
|
|
+
|
|
+static inline void bsp_sw_sync_timeline_inc(struct sw_sync_timeline *obj, u32 inc)
|
|
+{
|
|
+}
|
|
+
|
|
+static inline struct sync_pt *bsp_sw_sync_pt_create(struct sw_sync_timeline *obj,
|
|
+ u32 value)
|
|
+{
|
|
+ return NULL;
|
|
+}
|
|
+#endif /* IS_ENABLED(CONFIG_SW_SYNC) */
|
|
+
|
|
+#endif /* _LINUX_SW_SYNC_H */
|