[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [PATCH 1/2] xen/kexec: Remove use of TRUE/FALSE
Whilst fixing this, also changed bool_t to bool. Suggested-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx> Signed-off-by: Kevin Stefanov <kevin.stefanov@xxxxxxxxxx> --- CC: Andrew Cooper <andrew.cooper3@xxxxxxxxxx> --- xen/common/kexec.c | 6 +++--- xen/include/xen/kexec.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/xen/common/kexec.c b/xen/common/kexec.c index ebeee6405a..938cbb8005 100644 --- a/xen/common/kexec.c +++ b/xen/common/kexec.c @@ -35,7 +35,7 @@ #include <compat/kexec.h> #endif -bool_t kexecing = FALSE; +bool 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; @@ -383,7 +383,7 @@ void kexec_crash(enum crash_reason reason) if ( !test_bit(KEXEC_IMAGE_CRASH_BASE + pos, &kexec_flags) ) return; - kexecing = TRUE; + kexecing = true; if ( kexec_common_shutdown() != 0 ) return; @@ -399,7 +399,7 @@ static long kexec_reboot(void *_image) { struct kexec_image *image = _image; - kexecing = TRUE; + kexecing = true; kexec_common_shutdown(); machine_reboot_kexec(image); diff --git a/xen/include/xen/kexec.h b/xen/include/xen/kexec.h index 9f7a912e97..02dc889334 100644 --- a/xen/include/xen/kexec.h +++ b/xen/include/xen/kexec.h @@ -17,7 +17,7 @@ typedef struct xen_kexec_reserve { 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); -- 2.25.1
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |