|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [XEN][RFC PATCH v4 11/16] common/device_tree: Add rwlock for dt_host
Hi, On 01/02/2023 17:05, Vikram Garhwal wrote: On 12/7/22 8:31 AM, Julien Grall wrote:Okay. Shall I remove the lock from here and perhaps add it when dt_find_node_by_name() and other related functions are called?Signed-off-by: Vikram Garhwal <vikram.garhwal@xxxxxxx> --- xen/common/device_tree.c | 27 +++++++++++++++++++++++++++ xen/include/xen/device_tree.h | 6 ++++++ 2 files changed, 33 insertions(+) diff --git a/xen/common/device_tree.c b/xen/common/device_tree.c index acf26a411d..51ee2a5edf 100644 --- a/xen/common/device_tree.c +++ b/xen/common/device_tree.c@@ -140,6 +140,8 @@ const struct dt_property *dt_find_property(const struct dt_device_node *np, It is a possibility. I would need to see the end result to be sure a lock is actually suitable. Maybe we will end up to need a refcounting instead if we keep the DT node for longer. Cheers, -- Julien Grall
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |