Skip to content

Commit

Permalink
ARM: Perform the creation of procfs node for VFP later
Browse files Browse the repository at this point in the history
The creation of procfs node for VFP bounce reporting failed
when placed in early init, so perform this creation later.
  • Loading branch information
chil360 committed Feb 18, 2014
1 parent af1a2f4 commit 684b9ed
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions arch/arm/vfp/vfpmodule.c
Expand Up @@ -729,9 +729,7 @@ static int __init vfp_init(void)
{
unsigned int vfpsid;
unsigned int cpu_arch = cpu_architecture();
#ifdef CONFIG_PROC_FS
static struct proc_dir_entry *procfs_entry;
#endif

if (cpu_arch >= CPU_ARCH_ARMv6)
on_each_cpu(vfp_enable, NULL, 1);

Expand Down Expand Up @@ -800,8 +798,19 @@ static int __init vfp_init(void)
elf_hwcap |= HWCAP_VFPv4;
}
}
return 0;
}

/*
* VFP late initialisation.
*/
static int __init vfp_late_init(void)
{
#ifdef CONFIG_PROC_FS
static struct proc_dir_entry *procfs_entry;

pr_debug("Create procfs node for VFP bounce reporting\n");

procfs_entry = create_proc_entry("cpu/vfp_bounce", S_IRUGO, NULL);

if (procfs_entry)
Expand All @@ -814,3 +823,4 @@ static int __init vfp_init(void)
}

core_initcall(vfp_init);
late_initcall(vfp_late_init);

0 comments on commit 684b9ed

Please sign in to comment.