diff options
| author | Andrew Morton <akpm@osdl.org> | 2003-12-29 05:42:51 -0800 |
|---|---|---|
| committer | Linus Torvalds <torvalds@home.osdl.org> | 2003-12-29 05:42:51 -0800 |
| commit | e44db7e2a54d1d00c6984908693f1eaf9bc95641 (patch) | |
| tree | aaf28a5ec7cbc4f72029f25fc4c6447ed7a313d4 /include/linux/kernel.h | |
| parent | 9b1ace8b89ebd4220c09f97e097b5e4547d7f746 (diff) | |
[PATCH] sqrt() fixes
It turns out that the int_sqrt() function in oom_kill.c gets it wrong.
But fb_sqrt() in fbmon.c gets its math right. Move that function into
lib/int_sqrt.c, and consolidate.
(oom_kill.c fix from Thomas Schlichter <schlicht@uni-mannheim.de>)
Diffstat (limited to 'include/linux/kernel.h')
| -rw-r--r-- | include/linux/kernel.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/kernel.h b/include/linux/kernel.h index 6d4cb2db44db..74af714ff946 100644 --- a/include/linux/kernel.h +++ b/include/linux/kernel.h @@ -87,6 +87,8 @@ extern int session_of_pgrp(int pgrp); asmlinkage int printk(const char * fmt, ...) __attribute__ ((format (printf, 1, 2))); +unsigned long int_sqrt(unsigned long); + static inline void console_silent(void) { console_loglevel = 0; |
