why kernel implement "udelay" by cpu instructions?
Dear all: I find the kernel use cpu instruction to implement the udelay function as keeping decrease a big counter by 1. If I search the right place in kernel, why kernel does so? the precision will be different if cpu runs faster or slower, right? appreciate your help, miloody -- To unsubscribe from this lis... 4 Nov 2009 09:42
[PATCH 1/2] compiler: Introduce __always_unused
I wrote some code which is used as compile-time checker, and the code should be elided after compile. So I need to annotate the code as "always unused", compared to "maybe unused". Signed-off-by: Li Zefan <lizf(a)cn.fujitsu.com> --- include/linux/compiler-gcc.h | 1 + include/linux/compiler.h | 4 ++... 1 Nov 2009 20:58
[PATCH 1/1] MM: slqb, fix per_cpu access
We cannot use the same local variable name as the declared per_cpu variable since commit "percpu: remove per_cpu__ prefix." Otherwise we would see crashes like: general protection fault: 0000 [#1] SMP last sysfs file: CPU 1 Modules linked in: Pid: 1, comm: swapper Tainted: G W 2.6.32-rc5-mm1_64 #860 R... 1 Nov 2009 17:41
vmscan: Kill hibernation specific reclaim logic and unify it
On Sunday 01 November 2009, KOSAKI Motohiro wrote: shrink_all_zone() was introduced by commit d6277db4ab (swsusp: rework memory shrinker) for hibernate performance improvement. and sc.swap_cluster_max was introduced by commit a06fe4d307 (Speed freeing memory for suspend). commit a06fe4d307 said ... 3 Nov 2009 17:06
wpa2 hangs v2.6.32-rc5-402-gb6727b1. Revert 7d930bc33653d5592dc386a76a38f39c2e962344 fixed it.
wpa2 (wpa_supplicant) hangs v2.6.32-rc5-402-gb6727b1. Reverting 7d930bc33653d5592dc386a76a38f39c2e962344 fixes it. Here's the bad commit. Thanks, Jeff. 7d930bc33653d5592dc386a76a38f39c2e962344 is the first bad commit commit 7d930bc33653d5592dc386a76a38f39c2e962344 Author: Johannes Berg <johannes(a)si... 1 Nov 2009 11:04
2.6.31.4 panic: CRED: put_cred_rcu() sees ffff880204e58c00 with usage 82150912
On Friday 30 October 2009, Nikola Ciprich wrote: Ouch, typo in subject, it's 2.6.31.1 of course. sorry about that. also CCing kvm. What about later kernels? Mainline in particular? Rafael -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo(a)vge... 30 Oct 2009 14:27
param: use ops in struct kernel_param, rather than get and set fns directly
At Fri, 23 Oct 2009 00:51:28 +1030, Rusty Russell wrote: This is more kernel-ish, saves some space, and also allows us to expand the ops without breaking all the callers who are happy for the new members to be NULL. The few places which defined their own param types are changed to the new scheme... 1 Nov 2009 05:39
[PATCH 2/2] pci: pciehp update the slot bridge res to get big range for pcie devices - v8
move out bus_size_bridges and assign resources out of pciehp_add_bridge() and at last do them all together one time including slot bridge, to avoid to call assign resources several times, when there are several bridges under the slot bridge. need to introduce pci_bridge_assign_resources there. handle the cas... 30 Oct 2009 05:40
OOM killer, page fault
Dear all, (please Cc) With 2.6.32-rc5 I got that one: [13832.210068] Xorg invoked oom-killer: gfp_mask=0x0, order=0, oom_adj=0 [13832.210073] Pid: 11220, comm: Xorg Not tainted 2.6.32-rc5 #2 [13832.210075] Call Trace: [13832.210081] [<ffffffff8134120a>] ? _spin_unlock+0x23/0x2f [13832.210085] [<ffffffff810... 21 Nov 2009 05:58
tracing: Fix to use unused attribute
* Li Zefan <lizf(a)cn.fujitsu.com> wrote: ____ftrace_check_##name() is used for compile-time check on F_printk() only, so it should be marked as __unused instead of __used. Signed-off-by: Li Zefan <lizf(a)cn.fujitsu.com> --- I'm thinking about introducing __always_unused, comparing to __may... 29 Oct 2009 04:23