Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cadfce72 authored by Jan Glauber's avatar Jan Glauber Committed by Martin Schwidefsky
Browse files

[S390] disable cpu measurement alerts on a dying cpu



The cpu measurement alerts that are used for instance by oprofile
for hardware sampling are not turned off on a cpu that is going
offline. Add the appropriate control register bit that should be
disabled to the list.

Signed-off-by: default avatarJan Glauber <jang@linux.vnet.ibm.com>
Signed-off-by: default avatarMartin Schwidefsky <schwidefsky@de.ibm.com>
parent c76e70d3
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -654,7 +654,8 @@ int __cpu_disable(void)
	/* disable all external interrupts */
	cr_parms.orvals[0] = 0;
	cr_parms.andvals[0] = ~(1 << 15 | 1 << 14 | 1 << 13 | 1 << 11 |
				1 << 10 | 1 <<	9 | 1 <<  6 | 1 <<  4);
				1 << 10 | 1 <<	9 | 1 <<  6 | 1 <<  5 |
				1 <<  4);
	/* disable all I/O interrupts */
	cr_parms.orvals[6] = 0;
	cr_parms.andvals[6] = ~(1 << 31 | 1 << 30 | 1 << 29 | 1 << 28 |