|
@@ -52,6 +52,7 @@
|
|
|
#include <asm/pSeries_reconfig.h>
|
|
|
#include <asm/pci-bridge.h>
|
|
|
#include <asm/kexec.h>
|
|
|
+#include <asm/system.h>
|
|
|
|
|
|
#ifdef DEBUG
|
|
|
#define DBG(fmt...) printk(KERN_ERR fmt)
|
|
@@ -1730,22 +1731,18 @@ struct device_node *of_get_cpu_node(int cpu, unsigned int *thread)
|
|
|
}
|
|
|
EXPORT_SYMBOL(of_get_cpu_node);
|
|
|
|
|
|
-#ifdef DEBUG
|
|
|
+#if defined(CONFIG_DEBUG_FS) && defined(DEBUG)
|
|
|
static struct debugfs_blob_wrapper flat_dt_blob;
|
|
|
|
|
|
static int __init export_flat_device_tree(void)
|
|
|
{
|
|
|
struct dentry *d;
|
|
|
|
|
|
- d = debugfs_create_dir("powerpc", NULL);
|
|
|
- if (!d)
|
|
|
- return 1;
|
|
|
-
|
|
|
flat_dt_blob.data = initial_boot_params;
|
|
|
flat_dt_blob.size = initial_boot_params->totalsize;
|
|
|
|
|
|
d = debugfs_create_blob("flat-device-tree", S_IFREG | S_IRUSR,
|
|
|
- d, &flat_dt_blob);
|
|
|
+ powerpc_debugfs_root, &flat_dt_blob);
|
|
|
if (!d)
|
|
|
return 1;
|
|
|
|