Whilst fixing this, also changed bool_t to bool, and use __read_mostly.
Suggested-by: Andrew Cooper <andrew.cooper3@citrix.com>
Signed-off-by: Kevin Stefanov <kevin.stefanov@citrix.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
#include <compat/kexec.h>
#endif
-bool_t kexecing = FALSE;
+bool __read_mostly kexecing;
/* Memory regions to store the per cpu register state etc. on a crash. */
typedef struct { Elf_Note * start; size_t size; } crash_note_range_t;
if ( !test_bit(KEXEC_IMAGE_CRASH_BASE + pos, &kexec_flags) )
return;
- kexecing = TRUE;
+ kexecing = true;
if ( kexec_common_shutdown() != 0 )
return;
{
struct kexec_image *image = _image;
- kexecing = TRUE;
+ kexecing = true;
kexec_common_shutdown();
machine_reboot_kexec(image);
extern xen_kexec_reserve_t kexec_crash_area;
extern paddr_t kexec_crash_area_limit;
-extern bool_t kexecing;
+extern bool kexecing;
void set_kexec_crash_area_size(u64 system_ram);
#else /* !CONFIG_KEXEC */
#define crashinfo_maxaddr_bits 0
-#define kexecing 0
+#define kexecing false
static inline void kexec_early_calculations(void) {}
static inline void kexec_crash(enum crash_reason reason)