diff options
| author | Thomas Gleixner <tglx@linutronix.de> | 2023-09-16 21:26:04 +0206 | 
|---|---|---|
| committer | Petr Mladek <pmladek@suse.com> | 2023-09-18 17:03:45 +0200 | 
| commit | 4b08d9e24f50163a8bda0a702b45b06bf841d792 (patch) | |
| tree | e9fa83236e90d6ed307f62ca6c1ec54ace0f8ca8 /drivers/fpga/fpga-region.c | |
| parent | 5634c90fd8553de7cbafecd048d0273690a2e84e (diff) | |
printk: nbcon: Add ownership state functions
Provide functions that are related to the safe handover mechanism
and allow console drivers to dynamically specify unsafe regions:
 - nbcon_context_can_proceed()
   Invoked by a console owner to check whether a handover request
   is pending or whether the console has been taken over by another
   context. If a handover request is pending, this function will
   also perform the handover, thus cancelling its own ownership.
 - nbcon_context_enter_unsafe()/nbcon_context_exit_unsafe()
   Invoked by a console owner to denote that the driver is about
   to enter or leave a critical region where a take over is unsafe.
   The exit variant is the point where the current owner releases
   the lock for a higher priority context which asked for the
   friendly handover.
   The unsafe state is stored in the console state and allows a
   new context to make informed decisions whether to attempt a
   takeover of such a console. The unsafe state is also available
   to the driver so that it can make informed decisions about the
   required actions and possibly take a special emergency path.
Co-developed-by: John Ogness <john.ogness@linutronix.de>
Signed-off-by: John Ogness <john.ogness@linutronix.de>
Signed-off-by: Thomas Gleixner (Intel) <tglx@linutronix.de>
Reviewed-by: Petr Mladek <pmladek@suse.com>
Signed-off-by: Petr Mladek <pmladek@suse.com>
Link: https://lore.kernel.org/r/20230916192007.608398-6-john.ogness@linutronix.de
Diffstat (limited to 'drivers/fpga/fpga-region.c')
0 files changed, 0 insertions, 0 deletions
