Displaying 1 result from an estimated 1 matches for "xen_idle_init".
Did you mean:
  pxe_idle_init
  
2011 Mar 22
10
Re: [RFC PATCH V4 4/5] cpuidle: driver for xen
...>states[count] = state_default_idle;
> +	count++;
> +
> +	dev->state_count = count;
> +
> +	if (cpuidle_register_device(dev))
> +		return -EIO; 
No cleanup of the ''dev'' so that we don''t leak memory?
> +	return 0;
> +}
> +
> +static int xen_idle_init(void)
> +{
> +	int retval, i;
> +	retval = cpuidle_register_driver(&xen_idle_driver);
> +
> +	for_each_online_cpu(i) {
> +		setup_cpuidle(i);
> +	}
> +
> +	return 0;
> +}
> +
>  void __init xen_arch_setup(void)
>  {
>  	xen_panic_handler_init();
> @@...