summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Levon <john.levon@joyent.com>2018-12-19 23:07:11 +0000
committerJohn Levon <john.levon@joyent.com>2019-03-14 21:23:07 +0000
commita00b240dc61ea7ab64e3881b755fca973a531e89 (patch)
tree899003c8d44ee2260d8b21b9ca9165176ce9a11f
parent542a7b7f5ccc44e3c95d6dce4ec0566f60bd9ff4 (diff)
downloadillumos-joyent-a00b240dc61ea7ab64e3881b755fca973a531e89.tar.gz
10146 core_pcbe_event_coverage() is missing an else
Reviewed by: Andy Stormont <astormont@racktopsystems.com> Reviewed by: Toomas Soome <tsoome@me.com> Reviewed by: Gergő Doma <domag02@gmail.com> Approved by: Richard Lowe <richlowe@richlowe.net>
-rw-r--r--usr/src/uts/intel/pcbe/core_pcbe.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr/src/uts/intel/pcbe/core_pcbe.c b/usr/src/uts/intel/pcbe/core_pcbe.c
index 0cf2d1f5c5..c2a624c2cb 100644
--- a/usr/src/uts/intel/pcbe/core_pcbe.c
+++ b/usr/src/uts/intel/pcbe/core_pcbe.c
@@ -20,7 +20,7 @@
*/
/*
* Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved.
- * Copyright 2018 Joyent, Inc.
+ * Copyright 2019 Joyent, Inc.
*/
/*
@@ -993,7 +993,8 @@ core_pcbe_event_coverage(char *event)
} else {
if (find_generic_events(event, cmn_generic_events) != NULL) {
bitmap |= BITMASK_XBITS(num_gpc);
- } if (find_generic_events(event, generic_events_pic0) != NULL) {
+ } else if (find_generic_events(event,
+ generic_events_pic0) != NULL) {
bitmap |= 1ULL;
} else if (find_gpcevent_core_uarch(event,
cmn_gpc_events_core_uarch) != NULL) {