aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoonas Kylmälä <joonas.kylmala@iki.fi>2018-06-10 15:28:49 (GMT)
committerDavid Ludovino <dllud@riseup.net>2019-09-07 23:58:09 (GMT)
commit13b47e9aa4b0ef45cfa38826124ed27a24c25291 (patch)
tree510bf953c238e08600a77f4b0909ea5243c2ca6f
parent94f216df9516c51c8375a7f19f3d56fe0413fd43 (diff)
downloadkernel_replicant_linux-udiv-emulation.zip
kernel_replicant_linux-udiv-emulation.tar.gz
kernel_replicant_linux-udiv-emulation.tar.bz2
arm: delete non-compiling code from idiv emulationudiv-emulation
-rw-r--r--arch/arm/kernel/idiv_emulate.c35
1 files changed, 0 insertions, 35 deletions
diff --git a/arch/arm/kernel/idiv_emulate.c b/arch/arm/kernel/idiv_emulate.c
index 79769f6..828f88e 100644
--- a/arch/arm/kernel/idiv_emulate.c
+++ b/arch/arm/kernel/idiv_emulate.c
@@ -57,29 +57,6 @@ static unsigned long sdivcounter;
static unsigned long udivcounter;
static pid_t previous_pid;
-#ifdef CONFIG_PROC_FS
-static int proc_read_status(char *page, char **start, off_t off, int count,
- int *eof, void *data)
-{
- char *p = page;
- int len;
-
- p += sprintf(p, "Emulated UDIV:\t\t%lu\n", udivcounter);
- p += sprintf(p, "Emulated SDIV:\t\t%lu\n", sdivcounter);
- if (previous_pid != 0)
- p += sprintf(p, "Last process:\t\t%d\n", previous_pid);
-
- len = (p - page) - off;
- if (len < 0)
- len = 0;
-
- *eof = (len <= count) ? 1 : 0;
- *start = page + off;
-
- return len;
-}
-#endif
-
static u32 emulate_udiv(u32 n, u32 base)
{
udivcounter++;
@@ -147,7 +124,6 @@ static int idiv_handler(struct pt_regs *regs, unsigned int instr)
info.si_signo = SIGFPE;
info.si_errno = 0;
- arm_notify_die("Division by zero", regs, &info, 0, 0);
goto out;
}
@@ -174,17 +150,6 @@ static struct undef_hook idiv_hook = {
static int __init idiv_emulation_init(void)
{
-#ifdef CONFIG_PROC_FS
- struct proc_dir_entry *res;
-
- res = create_proc_entry("cpu/idiv_emulation", S_IRUGO, NULL);
-
- if (!res)
- return -ENOMEM;
-
- res->read_proc = proc_read_status;
-#endif /* CONFIG_PROC_FS */
-
pr_notice("Registering SDIV/UDIV emulation handler\n");
register_undef_hook(&idiv_hook);