mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-05-03 11:56:51 -04:00
rv: Let the reactors take care of buffers
Each RV monitor has one static buffer to send to the reactors. If multiple errors are detected simultaneously, the one buffer could be overwritten. Instead, leave it to the reactors to handle buffering. Reviewed-by: Gabriele Monaco <gmonaco@redhat.com> Signed-off-by: Nam Cao <namcao@linutronix.de> Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
This commit is contained in:
committed by
Steven Rostedt (Google)
parent
3f045de7f5
commit
ff4e233d8a
@@ -38,7 +38,7 @@ union rv_task_monitor {
|
||||
struct rv_reactor {
|
||||
const char *name;
|
||||
const char *description;
|
||||
void (*react)(char *msg);
|
||||
__printf(1, 2) void (*react)(const char *msg, ...);
|
||||
};
|
||||
#endif
|
||||
|
||||
@@ -50,7 +50,7 @@ struct rv_monitor {
|
||||
void (*disable)(void);
|
||||
void (*reset)(void);
|
||||
#ifdef CONFIG_RV_REACTORS
|
||||
void (*react)(char *msg);
|
||||
__printf(1, 2) void (*react)(const char *msg, ...);
|
||||
#endif
|
||||
};
|
||||
|
||||
@@ -64,6 +64,11 @@ void rv_put_task_monitor_slot(int slot);
|
||||
bool rv_reacting_on(void);
|
||||
int rv_unregister_reactor(struct rv_reactor *reactor);
|
||||
int rv_register_reactor(struct rv_reactor *reactor);
|
||||
#else
|
||||
static inline bool rv_reacting_on(void)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
#endif /* CONFIG_RV_REACTORS */
|
||||
|
||||
#endif /* CONFIG_RV */
|
||||
|
||||
Reference in New Issue
Block a user