Commit ba7ed64
committed
s390/cpum_sf: Simplify release of SDBs and SDBTs
JIRA: https://issues.redhat.com/browse/RHEL-78197
upstream
========
commit 7bc1ee2
Author: Thomas Richter <tmricht@linux.ibm.com>
Date: Tue Nov 19 13:22:47 2024 +0100
description
===========
Free_sampling_buffer() releases the Sampling Data Buffers (SDBs)
and Sampling Data Buffer Table (SDBTs) allocated at event
initialization. Both buffers are of PAGE_SIZE bytes. Each SDBT
consists of 512 entries. The first 511 entries point to SDBs
the last entry points to a successor SDBT. The last SDBT in
the list points to the origin of all SDBTs. SDBTs do not
contain holes, that is an entry always points to a SDB.
If less than 511 SDBs have been allocation, the last entry
points to the origin SDBT.
Simplify the release of the SDBs and SDBTs, walk along the
SDBT chain, release SDBs and SDBTs and stop when reaching
the origin again.
Signed-off-by: Thomas Richter <tmricht@linux.ibm.com>
Reviewed-by: Sumanth Korikkar <sumanthk@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Michael Petlan <mpetlan@redhat.com>1 parent 24d4c7b commit ba7ed64
1 file changed
+13
-25
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
180 | 180 | | |
181 | 181 | | |
182 | 182 | | |
183 | | - | |
184 | | - | |
185 | | - | |
186 | | - | |
| 183 | + | |
187 | 184 | | |
188 | 185 | | |
189 | | - | |
190 | | - | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
191 | 189 | | |
192 | | - | |
193 | | - | |
194 | | - | |
195 | | - | |
196 | | - | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
197 | 193 | | |
| 194 | + | |
198 | 195 | | |
199 | | - | |
200 | | - | |
201 | | - | |
202 | | - | |
203 | | - | |
204 | | - | |
205 | | - | |
206 | | - | |
| 196 | + | |
| 197 | + | |
207 | 198 | | |
208 | 199 | | |
209 | | - | |
210 | | - | |
211 | | - | |
212 | | - | |
| 200 | + | |
| 201 | + | |
213 | 202 | | |
214 | | - | |
215 | | - | |
| 203 | + | |
216 | 204 | | |
217 | 205 | | |
218 | 206 | | |
| |||
0 commit comments