From 58865bb7f764a6ca11f3057bee77153724ebb239 Mon Sep 17 00:00:00 2001 From: Josef 'Jeff' Sipek Date: Tue, 26 May 2015 12:59:29 -0400 Subject: 5955 pat_sync is clever enough to check for X86FSET_PAT Reviewed by: Albert Lee Reviewed by: Marcel Telka Approved by: Dan McDonald --- usr/src/uts/i86pc/os/cpr_impl.c | 3 +-- usr/src/uts/i86pc/os/mp_startup.c | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) (limited to 'usr/src') diff --git a/usr/src/uts/i86pc/os/cpr_impl.c b/usr/src/uts/i86pc/os/cpr_impl.c index 0583ac6ed6..91fb583a01 100644 --- a/usr/src/uts/i86pc/os/cpr_impl.c +++ b/usr/src/uts/i86pc/os/cpr_impl.c @@ -944,8 +944,7 @@ i_cpr_start_cpu(void) * We need to Sync PAT with cpu0's PAT. We have to do * this with interrupts disabled. */ - if (is_x86_feature(x86_featureset, X86FSET_PAT)) - pat_sync(); + pat_sync(); /* * If we use XSAVE, we need to restore XFEATURE_ENABLE_MASK register. diff --git a/usr/src/uts/i86pc/os/mp_startup.c b/usr/src/uts/i86pc/os/mp_startup.c index 412c66f4d4..a068914259 100644 --- a/usr/src/uts/i86pc/os/mp_startup.c +++ b/usr/src/uts/i86pc/os/mp_startup.c @@ -1671,8 +1671,7 @@ mp_startup_common(boolean_t boot) /* * Program this cpu's PAT */ - if (is_x86_feature(x86_featureset, X86FSET_PAT)) - pat_sync(); + pat_sync(); #endif /* -- cgit v1.2.3