diff options
author | Sjur Brændeland <sjur.brandeland@stericsson.com> | 2012-09-18 14:32:45 -0400 |
---|---|---|
committer | Ohad Ben-Cohen <ohad@wizery.com> | 2012-09-18 14:55:52 -0400 |
commit | 099a3f33c82b5153a4422eb92c648098b3f7c086 (patch) | |
tree | ceeb12f2321595dd465aac47873ab2497463a8b8 /include/linux/remoteproc.h | |
parent | 2e37abb89a2ef13c524b0728bb9893f996a10b6b (diff) |
remtoteproc: maintain max notifyid
Some of the rproc drivers (STE modem specifically) needs to know
the range of the notification IDs used for notifying the device.
Maintain a variable in struct rproc holding the largest allocated
notification id, so low-level rproc drivers could access it.
Signed-off-by: Sjur Brændeland <sjur.brandeland@stericsson.com>
[ohad: rebase, slightly edit commit log]
Signed-off-by: Ohad Ben-Cohen <ohad@wizery.com>
Diffstat (limited to 'include/linux/remoteproc.h')
-rw-r--r-- | include/linux/remoteproc.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/remoteproc.h b/include/linux/remoteproc.h index 2ccc3fe2046d..faf33324c78f 100644 --- a/include/linux/remoteproc.h +++ b/include/linux/remoteproc.h | |||
@@ -400,6 +400,7 @@ enum rproc_crash_type { | |||
400 | * @crash_cnt: crash counter | 400 | * @crash_cnt: crash counter |
401 | * @crash_comp: completion used to sync crash handler and the rproc reload | 401 | * @crash_comp: completion used to sync crash handler and the rproc reload |
402 | * @recovery_disabled: flag that state if recovery was disabled | 402 | * @recovery_disabled: flag that state if recovery was disabled |
403 | * @max_notifyid: largest allocated notify id. | ||
403 | */ | 404 | */ |
404 | struct rproc { | 405 | struct rproc { |
405 | struct klist_node node; | 406 | struct klist_node node; |
@@ -427,6 +428,7 @@ struct rproc { | |||
427 | unsigned crash_cnt; | 428 | unsigned crash_cnt; |
428 | struct completion crash_comp; | 429 | struct completion crash_comp; |
429 | bool recovery_disabled; | 430 | bool recovery_disabled; |
431 | int max_notifyid; | ||
430 | }; | 432 | }; |
431 | 433 | ||
432 | /* we currently support only two vrings per rvdev */ | 434 | /* we currently support only two vrings per rvdev */ |