diff options
author | Richard Lowe <richlowe@richlowe.net> | 2011-03-11 23:32:13 -0500 |
---|---|---|
committer | Richard Lowe <richlowe@richlowe.net> | 2011-03-11 23:32:13 -0500 |
commit | c5c327a3798ec591ea25e674d3681765d2439b20 (patch) | |
tree | b67daf8bda474bdb18987e4da8dc26b282c378d8 /usr/src | |
parent | ff500535587afd3251e90e4481564113c5a70b34 (diff) | |
download | illumos-gate-c5c327a3798ec591ea25e674d3681765d2439b20.tar.gz |
784 gcc-built cpr doesn't load
Reviewed by: danmcd@nexenta.com
Reviewed by: gwr@nexenta.com
Reviewed by: olga.kryzhanovska@gmail.com
Approved by: garrett@nexenta.com
--HG--
extra : rebase_source : 46e4d81d9efa800b1bd3d3b471e11e08d02913a0
Diffstat (limited to 'usr/src')
-rw-r--r-- | usr/src/uts/common/cpr/cpr_mod.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/usr/src/uts/common/cpr/cpr_mod.c b/usr/src/uts/common/cpr/cpr_mod.c index 1b26cf38f1..901d21bceb 100644 --- a/usr/src/uts/common/cpr/cpr_mod.c +++ b/usr/src/uts/common/cpr/cpr_mod.c @@ -23,8 +23,6 @@ * Use is subject to license terms. */ -#pragma ident "%Z%%M% %I% %E% SMI" - /* * System call to checkpoint and resume the currently running kernel */ @@ -341,11 +339,15 @@ cpr(int fcn, void *mdep) return (ENOTSUP); } - if (!i_cpr_is_supported(cpr_sleeptype) || - (cpr_sleeptype == CPR_TODISK && - !cpr_is_ufs(rootvfs)&& !cpr_is_zfs(rootvfs))) + if (!i_cpr_is_supported(cpr_sleeptype)) return (ENOTSUP); +#if defined(__sparc) + if ((cpr_sleeptype == CPR_TODISK && + !cpr_is_ufs(rootvfs) && !cpr_is_zfs(rootvfs))) + return (ENOTSUP); +#endif + if (fcn == AD_CHECK_SUSPEND_TO_RAM || fcn == DEV_CHECK_SUSPEND_TO_RAM) { ASSERT(i_cpr_is_supported(cpr_sleeptype)); |