Commit f966a95
committed
fast_get: Enable buffer sharing when using module driver heap
Allow fast_get sram buffer sharing across multiple userspace module
instances when CONFIG_SOF_USERSPACE_USE_DRIVER_HEAP is enabled. The module
driver heap is shared by all instances of a given module, so allocated
buffers can safely be reused between them.
Simplify checking whether a calling thread runs in userspace by verifying
if the K_USER flag is set.
Signed-off-by: Adrian Warecki <adrian.warecki@intel.com>1 parent 658944a commit f966a95
1 file changed
Lines changed: 10 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
148 | 148 | | |
149 | 149 | | |
150 | 150 | | |
151 | | - | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
152 | 156 | | |
153 | 157 | | |
154 | 158 | | |
| |||
186 | 190 | | |
187 | 191 | | |
188 | 192 | | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
189 | 197 | | |
190 | | - | |
| 198 | + | |
191 | 199 | | |
192 | 200 | | |
193 | 201 | | |
| |||
0 commit comments