- 28 Oct, 2004 4 commits
-
-
Hugh Dickins authored
The third "shared" field of /proc/$pid/statm in 2.4 was a count of pages in the mm whose page_count is more than 1 (oddly, including pages shared just with swapcache). That's too costly to calculate each time, so 2.6 changed it to the total file-backed extent. But Andrea knows apps and users surprised when (rss - shared) goes negative: we need to provide an rss-like statistic, close to the 2.4 interpretation. Something that's quick and easy to maintain accurately is mm->anon_rss, the count of anonymous pages in the mm. Then shared = rss - anon_rss gives a pretty good and meaningful approximation to 2.4's intention: wli confirms that this will be useful to Oracle too. Where to show it? I think it's best to treat this as a bugfix and show it in the third field of /proc/$pid/statm, after resident, as before - there's no evidence that the total file-backed extent was found useful. Albert would like other fields to revert to page counts, but that's a lot harder: if mprotect can change the category of a page, then it can't be accounted as simply as this. Only go that route if real need shown. Signed-off-by: Hugh Dickins <hugh@veritas.com> Acked-by: William Irwin <wli@holomorphy.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-
Hugh Dickins authored
The procfs shared_vm accounting in do_mmap_pgoff didn't balance with munmap in the case of shared anonymous: because file comes in NULL, whereas vm_file gets set at the end by shmem_zero_setup. Update file; and update vm_flags (a driver is likely to add VM_IO or VM_RESERVED, modifying reserved_vm); and update pgoff (doesn't affect procfs accounting, but could affect vma_merge - though at present all drivers which modify vm_pgoff set a VM_SPECIAL which prevents merging). And do that __vm_stat_account before advancing to make_pages_present. Signed-off-by: Hugh Dickins <hugh@veritas.com> Acked-by: William Irwin <wli@holomorphy.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-
Hugh Dickins authored
The NUMA policy for shared memory or tmpfs page allocation was protected by a semaphore. It helps to improve scalability if we change that to a spinlock (and there's only one place that needs to drop and reacquire). Oh, and don't even bother to get the spinlock while the tree is empty. Acked-by: Andi Kleen <ak@suse.de> Signed-off-by: Hugh Dickins <hugh@veritas.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-
David Howells authored
During system boot many probes, etc. will generate upcalls to userspace via call_usermodehelper(). This has the effect of calling execve() before the key subsystem has been initialized, and thus Oopsing on a NULL key_jar during key_alloc(). Move key_init to security_initcall so that it's called along with other security initialization routines which have similar requirements. Signed-off-by: Chris Wright <chrisw@osdl.org> Signed-off-by: David Howells <dhowells@redhat.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-
- 27 Oct, 2004 28 commits
-
-
bk://kernel.bkbits.net/davem/net-2.6Linus Torvalds authored
into ppc970.osdl.org:/home/torvalds/v2.6/linux
-
Herbert Xu authored
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> Signed-off-by: David S. Miller <davem@davemloft.net>
-
Herbert Xu authored
Since xfrm_user can be built as a module it's best not to panic when something goes wrong in xfrm_user_init. Call me a wimp for not fixing netlink_kernel_init's return value :) Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> Signed-off-by: David S. Miller <davem@davemloft.net>
-
Herbert Xu authored
This patch checks the return value of netlink_insert() in netlink_kernel_create(). It could fail if someone loads the same module twice for instance. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> Signed-off-by: David S. Miller <davem@davemloft.net>
-
Greg Ungerer authored
This patch fixes 3 problems with the nommu.c support code: 1. export mem_map and vmtruncate (to make them the same as MMU version) 2. update the total_vm usage in mmap routines Without this the OOM killer has no "badness" points to rate processes on... This patch was originally submitted by Giovanni Casoli <giovanni.casoli@atengineering.it> for a 2.4.26 kernel. I applied it to the 2.6.9 code. 3. provide stub for arch_get_unmapped_area Signed-off-by: Greg Ungerer <gerg@uclinux.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-
Greg Ungerer authored
Add code to support the apply_relocate_add() function, needed to support all relocation types of the m68k and Coldfire families. This code is straight out of the m68k support for this. Patch was originally from Christian Magnusson <christian.magnusson@runaware.com> Signed-off-by: Greg Ungerer <gerg@snapgear.com> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-
Greg Ungerer authored
Remove remaining unused shglcores.h include. Signed-off-by: Greg Ungerer <gerg@snapgear.com> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-
Greg Ungerer authored
Remove unused shglcore.h include. Signed-off-by: Greg Ungerer <gerg@snapgear.com> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-
Greg Ungerer authored
Clean up the definition of HZ on m68knommu systems. There is really only a couple of cases to handle, most boards use the traditional 100Hz still. Only special case out those that don't. The current code is just spaghetti. Signed-off-by: Greg Ungerer <gerg@snapgear.com> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-
Greg Ungerer authored
Remove unused SHGLCORE support. Signed-off-by: Greg Ungerer <gerg@snapgear.com> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-
Greg Ungerer authored
Remove uneeded includes. asm/delay.h is not needed here. Signed-off-by: Greg Ungerer <gerg@snapgear.com> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-
Greg Ungerer authored
Remove uneeded includes. asm/delay.h is not needed here. Signed-off-by: Greg Ungerer <gerg@snapgear.com> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-
Greg Ungerer authored
Remove uneeded includes. asm/delay.h is not needed here. Signed-off-by: Greg Ungerer <gerg@snapgear.com> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-
Greg Ungerer authored
Remove unused shglcore.h include from m68knommu/mm/memory.c That file will be removed in an upcoming patch. Signed-off-by: Greg Ungerer <gerg@snapgear.com> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-
Greg Ungerer authored
Remove unused shglcore.h include from m68knommu/mm/init.c That file will be removed in an upcoming patch. Signed-off-by: Greg Ungerer <gerg@snapgear.com> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-
Linus Torvalds authored
Kbuild can't fix up "-I $(src)/.." to the right directory due to the particular magic transformations it does on -I arguments. Remove the space, use "-I$(src)/.." and it works. Hopefully Sam will fix this build issue. I think somebody should dress up as scripts/Makefile.lib for Halloween. Now _that_ would be scary.
-
Linus Torvalds authored
Noted by Al Viro, superhacker and endlessly patient person. Sign up today! You too can become a superhacker by setting up a cross-compile environment for all architectures and building "allmodconfig" trees all day long to find places where others have screwed up.
-
Randolph Chung authored
If an arch Makefile overrides CROSS_COMPILE (e.g. parisc, mips, ...) then the cc-option call in the main Makefile uses the wrong compiler to check for options. Signed-off-by: Randolph Chung <tausq@debian.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-
Alexander Viro authored
FB_INTEL selects AGP_INTEL (i.e. intel-agp.c), which is i386-only. AGP_INTEL itself depends on X86 && !X86_64 and for a good reason - it doesn't build elsewhere. Added dependency to FB_INTEL itself; as it is allmodconfig had been broken on everything outside i386. Signed-off-by: Al Viro <viro@parcelfarce.linux.theplanet.co.uk> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-
bk://ppc.bkbits.net/for-linus-ppcLinus Torvalds authored
into ppc970.osdl.org:/home/torvalds/v2.6/linux
-
bk://bk.arm.linux.org.uk/linux-2.6-mmcLinus Torvalds authored
into ppc970.osdl.org:/home/torvalds/v2.6/linux
-
Russell King authored
Host drivers should now use the scatterlist rather than accessing the request directly. This marks the request pointer as being deprecated so that host driver authors get a chance to fix their drivers up before we remove this member.
-
Russell King authored
This converts the PXA MCI driver to use the supplied scatter list rather than accessing the struct request directly, thereby making this host driver independent of the block layer. We also clean up the driver to use a consistent driver name for resources.
-
Russell King authored
Convert MMCI driver to use the scatter list provided by the upper MMC layers. This removes all knowledge of struct request from the MMCI driver.
-
Russell King authored
This is intended to remove block layer knowledge from MMC host drivers. Host drivers are expected to use the scatter list for data transfers rather than accessing the struct request.
-
Russell King authored
-
bk://bk.arm.linux.org.uk/linux-2.6-pcmciaLinus Torvalds authored
into ppc970.osdl.org:/home/torvalds/v2.6/linux
-
bk://bk.arm.linux.org.uk/linux-2.6-rmkLinus Torvalds authored
into ppc970.osdl.org:/home/torvalds/v2.6/linux
-
- 28 Oct, 2004 1 commit
-
-
Nicolas Pitre authored
Patch from Nicolas Pitre - eliminate difference between ARMv3 and ARMv4 versions of io-readsl - unified little/big endian support - misc optimisations Signed-off-by: Nicolas Pitre
-
- 27 Oct, 2004 7 commits
-
-
Tony Lindgren authored
Patch from Tony Lindgren This patch by Dirk Behme, Todd Poynor et al adds power management support for OMAP. Suspend works on at least 1510 and 16xx. Signed-off-by: Tony Lindgren
-
Ben Dooks authored
Patch from Ben Dooks This patch does the following: - move the clock initialisation to just after the cpu init - add the two clocks for the s3c2440 - add dclk0/1 and clkout0/1 definitions - add list of clocks to the board specific struct - fix initialisation of the clock control - update handling of parent clocks for >1 parent this fixes the following problems: - serial console with no clock sources - clocks specific to various boards - hang if LCD controller enabled at start time Signed-off-by: Ben Dooks
-
Ben Dooks authored
Patch from Ben Dooks Allow power managemnet support for the Simtec EB2410ITX (BAST) Signed-off-by: Ben Dooks
-
Ben Dooks authored
Patch from Ben Dooks Allow the uncompressing messages to be sent to the UART specified in the kernel configuration, instead of just UART 0. This includes the Kconfig update to make this option available all the time, and to rename it's description text. This patch also fixes s3c2440 support for the uncompressor Signed-off-by: Ben Dooks
-
Ben Dooks authored
Patch from Ben Dooks Header file for BAST Power Management unit register definitions Signed-off-by: Ben Dooks
-
Ben Dooks authored
Patch from Ben Dooks Clean warnings about unsigned long / unsigned int printk args and update comment on debugging Depends on patch 2134/3 Signed-off-by: Ben Dooks
-
Ben Dooks authored
Patch from Ben Dooks Updated default configurations for s3c2410 and bast Signed-off-by: Ben Dooks
-