*****************************************************************************/
/* used for system time scaling */
-static u32 __read_mostly bus_scale; /* scaling factor convert ns to bus cycles */
+static u32 __read_mostly bus_scale; /* scaling factor: ns -> bus cycles */
/*
* The timer chip is already set up at HZ interrupts per second here,
struct cpuinfo_x86 __read_mostly boot_cpu_data = { 0, 0, 0, 0, -1 };
-unsigned long __read_mostly mmu_cr4_features = X86_CR4_PSE | X86_CR4_PGE | X86_CR4_PAE;
+unsigned long __read_mostly mmu_cr4_features =
+ X86_CR4_PSE | X86_CR4_PGE | X86_CR4_PAE;
bool_t __initdata acpi_disabled;
bool_t __initdata acpi_force;
}
}
-static struct irqaction __read_mostly irq0 = { timer_interrupt, "timer", NULL };
+static struct irqaction __read_mostly irq0 = {
+ timer_interrupt, "timer", NULL
+};
/* ------ Calibrate the TSC -------
* Return processor ticks per second / CALIBRATE_FRAC.
static int __read_mostly xenlog_upper_thresh = XENLOG_UPPER_THRESHOLD;
static int __read_mostly xenlog_lower_thresh = XENLOG_LOWER_THRESHOLD;
-static int __read_mostly xenlog_guest_upper_thresh = XENLOG_GUEST_UPPER_THRESHOLD;
-static int __read_mostly xenlog_guest_lower_thresh = XENLOG_GUEST_LOWER_THRESHOLD;
+static int __read_mostly xenlog_guest_upper_thresh =
+ XENLOG_GUEST_UPPER_THRESHOLD;
+static int __read_mostly xenlog_guest_lower_thresh =
+ XENLOG_GUEST_LOWER_THRESHOLD;
static void parse_loglvl(char *s);
static void parse_guest_loglvl(char *s);
/* CTRL-<switch_char> switches input direction between Xen and DOM0. */
#define switch_code (opt_conswitch[0]-'a'+1)
-static int __read_mostly xen_rx = 1; /* FALSE => serial input passed to domain 0. */
+static int __read_mostly xen_rx = 1; /* FALSE => input passed to domain 0. */
static void switch_serial_input(void)
{
void __init console_init_postirq(void)
{
char *ring;
- unsigned int i, order;
+ unsigned int i, order, memflags;
serial_init_postirq();
opt_conring_size = num_present_cpus() << (9 + xenlog_lower_thresh);
order = get_order_from_bytes(max(opt_conring_size, conring_size));
- while ( (ring = alloc_xenheap_pages(order, MEMF_bits(crashinfo_maxaddr_bits))) == NULL )
+ memflags = MEMF_bits(crashinfo_maxaddr_bits);
+ while ( (ring = alloc_xenheap_pages(order, memflags)) == NULL )
{
BUG_ON(order == 0);
order--;