Displaying 1 result from an estimated 1 matches for "setup_cpuidle".
2011 Mar 22
10
Re: [RFC PATCH V4 4/5] cpuidle: driver for xen
...syscall(void)
> #endif /* CONFIG_X86_64 */
> }
>
> +static struct cpuidle_driver xen_idle_driver = {
> + .name = "xen_idle",
> + .owner = THIS_MODULE,
> + .priority = 1,
> +};
> +
> +extern struct cpuidle_state state_default_state;
> +
> +static int setup_cpuidle(int cpu)
> +{
> + struct cpuidle_device *dev = kzalloc(sizeof(struct cpuidle_device),
> + GFP_KERNEL);
No checking to see if dev == NULL?
> + int count = CPUIDLE_DRIVER_STATE_START;
> + dev->cpu = cpu;
> + dev->drv = &xen_idle_driver;
> +
> + dev->states[co...