Skip to content

Commit 033a564

Browse files
committed
ppc/xive: Fix typo in crowd block level calculation
I introduced this bug when "tidying" the original patch, not Frederic. Paper bag for me. Fixes: 9cb7f6e ("ppc/xive2: Support group-matching when looking for target") Signed-off-by: Nicholas Piggin <[email protected]>
1 parent fb802ac commit 033a564

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hw/intc/xive.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1686,7 +1686,7 @@ static uint8_t xive_get_group_level(bool crowd, bool ignore,
16861686
* Supported crowd sizes are 2^1, 2^2, and 2^4. 2^3 is not supported.
16871687
* HW will encode level 4 as the value 3. See xive2_pgofnext().
16881688
*/
1689-
switch (level) {
1689+
switch (blk) {
16901690
case 1:
16911691
case 2:
16921692
break;

0 commit comments

Comments
 (0)