summaryrefslogtreecommitdiff
path: root/kexec
diff options
context:
space:
mode:
Diffstat (limited to 'kexec')
-rw-r--r--kexec/arch/ppc64/kexec-ppc64.c27
1 files changed, 1 insertions, 26 deletions
diff --git a/kexec/arch/ppc64/kexec-ppc64.c b/kexec/arch/ppc64/kexec-ppc64.c
index d83cc3f..f9dc65b 100644
--- a/kexec/arch/ppc64/kexec-ppc64.c
+++ b/kexec/arch/ppc64/kexec-ppc64.c
@@ -342,9 +342,7 @@ static int get_devtree_details(unsigned long kexec_flags)
strncmp(dentry->d_name, "memory@", 7) &&
strcmp(dentry->d_name, "memory") &&
strncmp(dentry->d_name, "pci@", 4) &&
- strncmp(dentry->d_name, "rtas", 4) &&
- strncmp(dentry->d_name,
- "ibm,dynamic-reconfiguration-memory", 35))
+ strncmp(dentry->d_name, "rtas", 4))
continue;
strcpy(fname, device_tree);
strcat(fname, dentry->d_name);
@@ -550,29 +548,6 @@ static int get_devtree_details(unsigned long kexec_flags)
closedir(cdir);
} /* memory */
- if (!strncmp(dentry->d_name,
- "ibm,dynamic-reconfiguration-memory", 35)) {
- unsigned int k;
- strcat(fname, "/ibm,dynamic-memory");
- if ((file = fopen(fname, "r")) == NULL) {
- perror(fname);
- goto error_opencdir;
- }
- fseek(file, 4, SEEK_SET);
- for (k = 0; k < num_of_lmbs; k++) {
- if ((n = fread(buf, 1, 24, file)) < 0) {
- perror(fname);
- goto error_openfile;
- }
- rmo_base = ((uint64_t *)buf)[0];
- rmo_top = rmo_base + lmb_size;
- if (rmo_top > 0x30000000UL)
- rmo_top = 0x30000000UL;
- }
- fclose(file);
- closedir(cdir);
- } /* ibm,dynamic-reconfiguration-memory */
-
if (strncmp(dentry->d_name, "pci@", 4) == 0) {
strcat(fname, "/linux,tce-base");
if ((file = fopen(fname, "r")) == NULL) {