mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-11-01 08:58:07 +00:00
a7dcf58ae5
They are not needed after booting, so mark them as __init to move them to the .init section. Signed-off-by: Jisheng Zhang <Jisheng.Zhang@synaptics.com> Reviewed-by: Steven Price <steven.price@arm.com> Link: https://lore.kernel.org/r/20210330135449.4dcffd7f@xhacker.debian Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
22 lines
498 B
C
22 lines
498 B
C
// SPDX-License-Identifier: GPL-2.0
|
|
#include <linux/debugfs.h>
|
|
#include <linux/memory_hotplug.h>
|
|
#include <linux/seq_file.h>
|
|
|
|
#include <asm/ptdump.h>
|
|
|
|
static int ptdump_show(struct seq_file *m, void *v)
|
|
{
|
|
struct ptdump_info *info = m->private;
|
|
|
|
get_online_mems();
|
|
ptdump_walk(m, info);
|
|
put_online_mems();
|
|
return 0;
|
|
}
|
|
DEFINE_SHOW_ATTRIBUTE(ptdump);
|
|
|
|
void __init ptdump_debugfs_register(struct ptdump_info *info, const char *name)
|
|
{
|
|
debugfs_create_file(name, 0400, NULL, info, &ptdump_fops);
|
|
}
|