Re: [PATCH] Open Firmware device tree virtual filesystem

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Segher Boessenkool
Date: Tuesday, January 2, 2007 - 5:48 pm

>>>> Not single thread -- but a "global OF lock" yes.  Not that

Yes.  "Global OF lock".


You are not _guaranteed_ it is multithreaded, and you don't
know it's threading model (or how to do thread synchronisation).


YOu don't need to *stop* the other CPUs, you just need to
prevent them from entering the client interface.  Put a lock
in front.


The in-OF tree uses a bit more memory, depending on implementation.
It's hard to tell though, it contains so much more than the
properties-only tree, perhaps you're right.


Okay -- so answer the second part of my concern please: if you keep
a copy, you need to keep both in sync -- that means every change
by the kernel has to be done twice, and you won't ever be told about
changes by the OF, so you have to get a full fresh copy every single
time you return from an OF client call that could have changed a
property.


Segher

-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH] Open Firmware device tree virtual filesystem, Benjamin Herrenschmidt, (Mon Jan 1, 8:53 pm)
Re: [PATCH] Open Firmware device tree virtual filesystem, Segher Boessenkool, (Tue Jan 2, 5:22 am)
Re: [PATCH] Open Firmware device tree virtual filesystem, Benjamin Herrenschmidt, (Tue Jan 2, 1:12 pm)
Re: [PATCH] Open Firmware device tree virtual filesystem, Segher Boessenkool, (Tue Jan 2, 2:28 pm)
Re: [PATCH] Open Firmware device tree virtual filesystem, Benjamin Herrenschmidt, (Tue Jan 2, 2:32 pm)
Re: [PATCH] Open Firmware device tree virtual filesystem, Segher Boessenkool, (Tue Jan 2, 2:40 pm)
Re: [PATCH] Open Firmware device tree virtual filesystem, Segher Boessenkool, (Tue Jan 2, 5:48 pm)
Re: [PATCH] Open Firmware device tree virtual filesystem, Segher Boessenkool, (Wed Jan 3, 8:23 am)