Skip to content

Commit 4ff52b4

Browse files
antonblanchardmpe
authored andcommitted
powerpc/pseries: Use dump_stack instead of show_stack
We can use the simpler dump_stack() instead of show_stack(current, __get_SP()) Signed-off-by: Anton Blanchard <anton@samba.org> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
1 parent acf620e commit 4ff52b4

1 file changed

Lines changed: 5 additions & 6 deletions

File tree

  • arch/powerpc/platforms/pseries

‎arch/powerpc/platforms/pseries/iommu.c‎

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
#include <linux/mm.h>
3131
#include <linux/memblock.h>
3232
#include <linux/spinlock.h>
33-
#include <linux/sched.h> /* for show_stack */
3433
#include <linux/string.h>
3534
#include <linux/pci.h>
3635
#include <linux/dma-mapping.h>
@@ -168,7 +167,7 @@ static int tce_build_pSeriesLP(struct iommu_table *tbl, long tcenum,
168167
printk("\tindex = 0x%llx\n", (u64)tbl->it_index);
169168
printk("\ttcenum = 0x%llx\n", (u64)tcenum);
170169
printk("\ttce val = 0x%llx\n", tce );
171-
show_stack(current, (unsigned long *)__get_SP());
170+
dump_stack();
172171
}
173172

174173
tcenum++;
@@ -257,7 +256,7 @@ static int tce_buildmulti_pSeriesLP(struct iommu_table *tbl, long tcenum,
257256
printk("\tindex = 0x%llx\n", (u64)tbl->it_index);
258257
printk("\tnpages = 0x%llx\n", (u64)npages);
259258
printk("\ttce[0] val = 0x%llx\n", tcep[0]);
260-
show_stack(current, (unsigned long *)__get_SP());
259+
dump_stack();
261260
}
262261
return ret;
263262
}
@@ -273,7 +272,7 @@ static void tce_free_pSeriesLP(struct iommu_table *tbl, long tcenum, long npages
273272
printk("tce_free_pSeriesLP: plpar_tce_put failed. rc=%lld\n", rc);
274273
printk("\tindex = 0x%llx\n", (u64)tbl->it_index);
275274
printk("\ttcenum = 0x%llx\n", (u64)tcenum);
276-
show_stack(current, (unsigned long *)__get_SP());
275+
dump_stack();
277276
}
278277

279278
tcenum++;
@@ -292,7 +291,7 @@ static void tce_freemulti_pSeriesLP(struct iommu_table *tbl, long tcenum, long n
292291
printk("\trc = %lld\n", rc);
293292
printk("\tindex = 0x%llx\n", (u64)tbl->it_index);
294293
printk("\tnpages = 0x%llx\n", (u64)npages);
295-
show_stack(current, (unsigned long *)__get_SP());
294+
dump_stack();
296295
}
297296
}
298297

@@ -307,7 +306,7 @@ static unsigned long tce_get_pSeriesLP(struct iommu_table *tbl, long tcenum)
307306
printk("tce_get_pSeriesLP: plpar_tce_get failed. rc=%lld\n", rc);
308307
printk("\tindex = 0x%llx\n", (u64)tbl->it_index);
309308
printk("\ttcenum = 0x%llx\n", (u64)tcenum);
310-
show_stack(current, (unsigned long *)__get_SP());
309+
dump_stack();
311310
}
312311

313312
return tce_ret;

0 commit comments

Comments
 (0)