diff options
author | Soeren Sandmann <sandmann@redhat.com> | 2005-11-23 04:26:36 +0000 |
---|---|---|
committer | Søren Sandmann Pedersen <ssp@src.gnome.org> | 2005-11-23 04:26:36 +0000 |
commit | ecfcee7ab139b870f5d5413b68b6f87fba08463d (patch) | |
tree | 32dc04628eabf65ba0522a7efc0398561d5f9d5a /module | |
parent | 6797b3ef0454c44acc878f69429f5a7b5a0e0abb (diff) |
Remove unused pages_present() function
Tue Nov 22 23:38:09 2005 Soeren Sandmann <sandmann@redhat.com>
* module/sysprof-module.c: Remove unused pages_present() function
Diffstat (limited to 'module')
-rw-r--r-- | module/sysprof-module.c | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/module/sysprof-module.c b/module/sysprof-module.c index 1fc01b7..004741c 100644 --- a/module/sysprof-module.c +++ b/module/sysprof-module.c @@ -189,37 +189,6 @@ read_frame (userspace_reader *reader, unsigned long addr, StackFrame *frame) struct work_struct work; -/** - * pages_present() from OProfile - * - * Copyright 2002 OProfile authors - * - * author John Levon - * author David Smith - */ - -#ifdef CONFIG_X86_4G -/* With a 4G kernel/user split, user pages are not directly - * accessible from the kernel, so don't try - */ -static int pages_present(StackFrame * head) -{ - return 0; -} -#else -/* check that the page(s) containing the frame head are present */ -static int pages_present(StackFrame * head) -{ - struct mm_struct * mm = current->mm; - - /* FIXME: only necessary once per page */ - if (!check_user_page_readable(mm, (unsigned long)head)) - return 0; - - return check_user_page_readable(mm, (unsigned long)(head + 1)); -} -#endif /* CONFIG_X86_4G */ - static int read_frame (void *frame_pointer, StackFrame *frame) { |