Files
linux-legacy/include/linux
Alexey Dobriyan 704503d836 mm: fix proc_dointvec_userhz_jiffies "breakage"
Addresses http://bugzilla.kernel.org/show_bug.cgi?id=9838

On i386, HZ=1000, jiffies_to_clock_t() converts time in a somewhat strange
way from the user's point of view:

	# echo 500 >/proc/sys/vm/dirty_writeback_centisecs
	# cat /proc/sys/vm/dirty_writeback_centisecs
	499

So, we have 5000 jiffies converted to only 499 clock ticks and reported
back.

TICK_NSEC = 999848
ACTHZ = 256039

Keeping in-kernel variable in units passed from userspace will fix issue
of course, but this probably won't be right for every sysctl.

[akpm@linux-foundation.org: coding-style fixes]
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Nick Piggin <nickpiggin@yahoo.com.au>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2009-04-01 08:59:13 -07:00
..
…
…
…
…
…
2009-03-18 19:45:11 -07:00
…
…
…
…
…
2009-03-05 14:39:32 -05:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2009-03-27 14:43:57 -04:00
…
…
…
…
…
…
…
…
…
…
…
…
…
2009-03-27 14:43:59 -04:00
2009-03-01 00:19:35 -08:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2009-03-16 08:32:27 -06:00
…
…
…
…
…
…
…
…
…
…
…
…
…
2009-02-18 15:37:56 -08:00
…
…
…
…
…
2009-03-24 12:35:17 +01:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2009-03-13 14:32:29 +01:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2009-03-28 23:55:59 -07:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2009-03-24 22:52:39 -04:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2009-04-01 08:59:13 -07:00
2009-04-01 08:59:12 -07:00
…
…
…
…
2009-03-26 10:56:35 -07:00
…
…
…
…
…
…
…
…
…
…
…
…
…
2009-03-15 19:59:13 -07:00
…
…
…
…
2009-03-27 14:43:59 -04:00
2009-03-27 14:43:59 -04:00
…
2009-03-10 20:33:18 -04:00
…
…
…
…
…
…
…
…
…
…
…
…
2009-04-01 08:59:13 -07:00
…
2009-04-01 08:59:13 -07:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2009-04-01 08:59:13 -07:00
…
…
2009-03-13 16:09:12 -07:00
…
…
…
…
…
…
2009-03-26 02:18:35 +01:00
…
…
…
…
…
2009-02-26 23:42:11 -08:00
…
…
2009-03-30 14:28:58 -07:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2009-02-27 16:53:50 +09:00
…
…
2009-02-20 17:57:48 -08:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2009-04-01 08:59:13 -07:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2009-02-18 15:37:53 -08:00
…
…
…
…
…
2009-03-26 18:14:21 +01:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…