/* Shared state for coordinating CPU bringup */
unsigned long smp_up_cpu = MPIDR_INVALID;
/* Shared state for coordinating CPU teardown */
-static bool_t cpu_is_dead = 0;
+static bool cpu_is_dead;
/* ID of the PCPU we're running on */
DEFINE_PER_CPU(unsigned int, cpu_id);
{
[0 ... NR_CPUS - 1] = MPIDR_INVALID
};
- bool_t bootcpu_valid = 0;
+ bool bootcpu_valid = false;
int rc;
mpidr = boot_cpu_data.mpidr.bits & MPIDR_HWID_MASK;
if ( hwid == mpidr )
{
i = 0;
- bootcpu_valid = 1;
+ bootcpu_valid = true;
}
else
i = cpuidx++;
void stop_cpu(void)
{
local_irq_disable();
- cpu_is_dead = 1;
+ cpu_is_dead = true;
/* Make sure the write happens before we sleep forever */
dsb(sy);
isb();
printk(KERN_ERR "CPU %u still not dead...\n", cpu);
smp_mb();
}
- cpu_is_dead = 0;
+ cpu_is_dead = false;
smp_mb();
}