Thread (33 messages) flat view 33 messages, 4 authors, 2021-03-04

RE: [PATCH 08/10] soc: fujitsu: hwb: Add release operation

From: misono.tomohiro@fujitsu.com <hidden>
Date: 2021-01-12 10:41:24

On Fri, Jan 8, 2021 at 11:52 AM Misono Tomohiro
[off-list ref] wrote:
quoted
Upon release, we cleanup remaining resources/registers if necessary.
This happens when user does not call IOC_BB_FREE properly and the
function will do effectively the same operation as IOC_BB_FREE.

Signed-off-by: Misono Tomohiro <redacted>
What is the benefit of calling IOC_BB_FREE instead of always relying
on close() to do this? Would it be easier to just not implement IOC_BB_FREE?
This is up to applications.
When the application want to reuse barrier driver resource with diffent
barrier settings (i.e. when changing which PEs joinining synchronization),
it can use IOC_BB_FREE rather than close and open device file again.

Regards,
Tomohiro
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help