Mitchell Horne 315cd55dba hwpmc: consistently validate PMC class in allocation method
It is always a good idea. In one case, attempting to allocate N+1 PMCs
from a class with N hardware counters would incorrectly attempt to
allocate from the next class in the list. Without this validation, this
can lead to all kinds of strange behaviour.

Since powerpc_allocate_pmc() is used by both the mpc7xxx and ppc970
classes, add a new global to track which is active (it will never be
both).

Reviewed by:	luporl, ray
MFC after:	1 week
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D31387
2021-08-30 16:12:59 -03:00
..
2021-08-10 20:44:27 -04:00
2020-10-02 18:18:01 +00:00
2021-07-07 11:05:46 +00:00
2020-02-03 17:35:11 +00:00
2021-04-27 19:07:33 +02:00
2021-01-13 18:43:51 +01:00
2021-07-03 20:06:48 +03:00
2021-06-24 16:35:40 +02:00
2020-04-18 02:52:59 +00:00
2020-07-01 00:33:16 +00:00
2020-02-03 17:35:11 +00:00
2021-08-08 10:16:06 +02:00
2021-04-12 13:47:55 -06:00
2021-03-05 17:33:39 -08:00
2021-07-31 08:00:16 -07:00
2020-04-18 02:53:09 +00:00
2021-08-10 20:44:27 -04:00
2021-08-10 21:27:54 -04:00
2021-08-10 20:44:27 -04:00
2020-08-31 15:03:23 +00:00
2020-09-18 16:48:08 +00:00
2020-02-07 19:53:07 +00:00
2019-10-21 18:07:11 +00:00
2020-11-19 03:59:21 +00:00
2021-08-13 16:58:25 -04:00
2021-08-08 10:16:06 +02:00
2021-08-20 14:51:12 -04:00
2021-08-10 20:44:27 -04:00
2021-08-10 20:44:27 -04:00
2021-08-10 20:44:27 -04:00
2021-01-07 17:05:30 -07:00
2020-10-05 19:58:55 +00:00
2019-10-21 18:07:40 +00:00
2019-10-21 18:07:44 +00:00
2021-08-16 06:28:33 +02:00
2021-07-17 18:03:39 -07:00