Print this page
NEX-17845 Remove support for BZIP2 from dump
Reviewed by: Sanjay Nadkarni <sanjay.nadkarni@nexenta.com>
Reviewed by: Yuri Pankov <yuri.pankov@nexenta.com>
re #13613 rb4516 Tunables needs volatile keyword

@@ -18,10 +18,11 @@
  *
  * CDDL HEADER END
  */
 /*
  * Copyright (c) 1993, 2010, Oracle and/or its affiliates. All rights reserved.
+ * Copyright 2018 Nexenta Systems, Inc.  All rights reserved.
  * Copyright (c) 2017, Joyent, Inc.  All rights reserved.
  */
 
 #include <sys/types.h>
 #include <sys/kstat.h>

@@ -61,11 +62,11 @@
 #include <sys/cpu.h>
 #include <sys/ivintr.h>
 #include <sys/clock_impl.h>
 #include <sys/machclock.h>
 
-int maxphys = MMU_PAGESIZE * 16;        /* 128k */
+volatile int maxphys = MMU_PAGESIZE * 16; /* 128k */
 int klustsize = MMU_PAGESIZE * 16;      /* 128k */
 
 /*
  * Initialize kernel thread's stack.
  */

@@ -834,17 +835,10 @@
 plat_mem_do_mmio(struct uio *uio, enum uio_rw rw)
 {
         return (ENOTSUP);
 }
 
-/* cpu threshold for compressed dumps */
-#ifdef sun4v
-uint_t dump_plat_mincpu_default = DUMP_PLAT_SUN4V_MINCPU;
-#else
-uint_t dump_plat_mincpu_default = DUMP_PLAT_SUN4U_MINCPU;
-#endif
-
 int
 dump_plat_addr()
 {
         return (0);
 }