Move the code from Xen to debugfs to make the code common
for other users as well.
Accked-by: Greg Kroah-Hartman
Signed-off-by: Srivatsa Vaddagiri
Signed-off-by: Suzuki Poulose
[v1: Fixed rebase issues]
[v2: Fixed PPC compile issues]
Signed-off-by: Raghavendra K T
Signed-off-by: Konrad Rzeszutek Wilk