summaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2011-05-20 13:37:22 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2011-05-20 13:37:22 -0700
commitbc091c93a0f60717aa99e25c406892cd8c0187dc (patch)
tree66fc7f6c97a11327c3acb0aee5c346717672a9f3 /kernel
parent3ed4c0583daa34dedb568b26ff99e5a7b58db612 (diff)
parenta2d063ac216c1618bfc2b4d40b7176adffa63511 (diff)
downloadkernel-common-bc091c93a0f60717aa99e25c406892cd8c0187dc.tar.gz
kernel-common-bc091c93a0f60717aa99e25c406892cd8c0187dc.tar.bz2
kernel-common-bc091c93a0f60717aa99e25c406892cd8c0187dc.zip
Merge branch 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip
* 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip: extable, core_kernel_data(): Make sure all archs define _sdata core_kernel_data(): Fix architectures that do not define _sdata
Diffstat (limited to 'kernel')
-rw-r--r--kernel/extable.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/kernel/extable.c b/kernel/extable.c
index c2d625fcda77..5339705b8241 100644
--- a/kernel/extable.c
+++ b/kernel/extable.c
@@ -72,6 +72,16 @@ int core_kernel_text(unsigned long addr)
return 0;
}
+/**
+ * core_kernel_data - tell if addr points to kernel data
+ * @addr: address to test
+ *
+ * Returns true if @addr passed in is from the core kernel data
+ * section.
+ *
+ * Note: On some archs it may return true for core RODATA, and false
+ * for others. But will always be true for core RW data.
+ */
int core_kernel_data(unsigned long addr)
{
if (addr >= (unsigned long)_sdata &&