1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-04 09:09:56 +00:00

Minor style changes to make forthcoming code stand out less.

Reviewed by:	emaste
Sponsored by:	The FreeBSD Foundation
MFC after:	2 weeks
X-Differential revision:	https://reviews.freebsd.org/D12221
This commit is contained in:
Konstantin Belousov 2017-09-06 17:14:23 +00:00
parent 6f47d67bfe
commit 9491ba7593
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=323229

View File

@ -1017,20 +1017,20 @@ iap_allocate_pmc(enum pmc_event pe, char *ctrspec,
return (-1); return (-1);
} else if (cpu_info.pm_cputype == PMC_CPU_INTEL_SANDYBRIDGE || } else if (cpu_info.pm_cputype == PMC_CPU_INTEL_SANDYBRIDGE ||
cpu_info.pm_cputype == PMC_CPU_INTEL_SANDYBRIDGE_XEON || cpu_info.pm_cputype == PMC_CPU_INTEL_SANDYBRIDGE_XEON ||
cpu_info.pm_cputype == PMC_CPU_INTEL_IVYBRIDGE || cpu_info.pm_cputype == PMC_CPU_INTEL_IVYBRIDGE ||
cpu_info.pm_cputype == PMC_CPU_INTEL_IVYBRIDGE_XEON ) { cpu_info.pm_cputype == PMC_CPU_INTEL_IVYBRIDGE_XEON ) {
if (KWPREFIXMATCH(p, IAP_KW_RSP "=")) { if (KWPREFIXMATCH(p, IAP_KW_RSP "=")) {
n = pmc_parse_mask(iap_rsp_mask_sb_sbx_ib, p, &rsp); n = pmc_parse_mask(iap_rsp_mask_sb_sbx_ib, p, &rsp);
} else } else
return (-1); return (-1);
} else if (cpu_info.pm_cputype == PMC_CPU_INTEL_HASWELL || } else if (cpu_info.pm_cputype == PMC_CPU_INTEL_HASWELL ||
cpu_info.pm_cputype == PMC_CPU_INTEL_HASWELL_XEON) { cpu_info.pm_cputype == PMC_CPU_INTEL_HASWELL_XEON) {
if (KWPREFIXMATCH(p, IAP_KW_RSP "=")) { if (KWPREFIXMATCH(p, IAP_KW_RSP "=")) {
n = pmc_parse_mask(iap_rsp_mask_haswell, p, &rsp); n = pmc_parse_mask(iap_rsp_mask_haswell, p, &rsp);
} else } else
return (-1); return (-1);
} else if (cpu_info.pm_cputype == PMC_CPU_INTEL_BROADWELL || } else if (cpu_info.pm_cputype == PMC_CPU_INTEL_BROADWELL ||
cpu_info.pm_cputype == PMC_CPU_INTEL_BROADWELL_XEON) { cpu_info.pm_cputype == PMC_CPU_INTEL_BROADWELL_XEON) {
/* Broadwell is defined to use same mask as haswell */ /* Broadwell is defined to use same mask as haswell */
if (KWPREFIXMATCH(p, IAP_KW_RSP "=")) { if (KWPREFIXMATCH(p, IAP_KW_RSP "=")) {
n = pmc_parse_mask(iap_rsp_mask_haswell, p, &rsp); n = pmc_parse_mask(iap_rsp_mask_haswell, p, &rsp);
@ -3595,7 +3595,8 @@ _pmc_name_of_event(enum pmc_event pe, enum pmc_cputype cpu)
break; break;
case PMC_CPU_INTEL_SKYLAKE: case PMC_CPU_INTEL_SKYLAKE:
ev = skylake_event_table; ev = skylake_event_table;
evfence = skylake_event_table + PMC_EVENT_TABLE_SIZE(skylake); evfence = skylake_event_table +
PMC_EVENT_TABLE_SIZE(skylake);
break; break;
case PMC_CPU_INTEL_IVYBRIDGE: case PMC_CPU_INTEL_IVYBRIDGE:
ev = ivybridge_event_table; ev = ivybridge_event_table;