search for: xen_idle_driver

Displaying 1 result from an estimated 1 matches for "xen_idle_driver".

2011 Mar 22
10
Re: [RFC PATCH V4 4/5] cpuidle: driver for xen
...; > +#include <linux/cpuidle.h> > +#include <linux/slab.h> > > #include <asm/elf.h> > #include <asm/vdso.h> > @@ -321,6 +323,44 @@ void __cpuinit xen_enable_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), > +...