Re: [RFC PATCH] wfcqueue: implement __wfcq_enqueue_head() (v3)

2013-04-07 Thread Eric Wong
Mathieu Desnoyers mathieu.desnoy...@efficios.com wrote: Changes since v2: * Only issue cmpxchg() if queue was empty. * Add missing memory barrier. Thanks! There's a slight drop in performance either from the barrier or larger code, but I'm not worried (it was around 9-10s before wfcqueue). $

[PATCH] bitmap: speedup in bitmap_find_free_region when order is 0

2013-04-07 Thread Chanho Min
If bitmap_find_free_region() is called with order=0, We can reduce for-loops to find 1 free bit. First, It scans bitmap array by the increment of long type, then find 1 free bit within 1 long type value. In 32 bits system and 1024 bits size, in the worst case, We need 1024 for-loops to find 1

Re: [GIT PULL] extcon fixes for 3.9-rc6

2013-04-07 Thread Greg KH
On Mon, Apr 08, 2013 at 11:02:14AM +0900, Chanwoo Choi wrote: Hi Greg, This is extcon fixes for 3.9-rc6 Please pull extcon with following updates. Best Regards and thanks, Chanwoo Choi The following changes since commit 07961ac7c0ee8b546658717034fe692fd12eefa9: Linux 3.9-rc5

Re: af_unix udev startup regression

2013-04-07 Thread Lai Jiangshan
On 04/05/2013 02:03 AM, Linus Torvalds wrote: [ Fixed odd legacy subject line that has nothing to do with the actual bug ] Hmm. Can you double-check and verify that reverting that commit makes things work again for you? reverting 14134f6584212d585b310ce95428014b653dfaf6 works.

Re: [PATCH] kernel: module: strncpy issue, using strlcpy instead of strncpy

2013-04-07 Thread Chen Gang
On 2013年04月07日 22:28, Geert Uytterhoeven wrote: On Sun, Apr 7, 2013 at 1:38 PM, Chen Gang gang.c...@asianux.com wrote: ownername and namebuf are all NUL terminated string. need always let them ended by '\0'. Signed-off-by: Chen Gang gang.c...@asianux.com --- kernel/module.c |

Re: [PATCH] PM/reboot: call syscore_shutdown() after disable_nonboot_cpus()

2013-04-07 Thread chenhc
On Sunday, April 07, 2013 08:29:32 AM Greg KH wrote: On Sun, Apr 07, 2013 at 10:46:00AM +0200, Rafael J. Wysocki wrote: On Sunday, April 07, 2013 10:14:14 AM Huacai Chen wrote: As commit 40dc166c (PM / Core: Introduce struct syscore_ops for core subsystems PM) say, syscore_ops operations

Re: [PATCH] kernel: module: strncpy issue, using strlcpy instead of strncpy

2013-04-07 Thread Chen Gang
On 2013年04月08日 10:48, Chen Gang wrote: On 2013年04月07日 22:28, Geert Uytterhoeven wrote: On Sun, Apr 7, 2013 at 1:38 PM, Chen Gang gang.c...@asianux.com wrote: ownername and namebuf are all NUL terminated string. need always let them ended by '\0'. Signed-off-by: Chen Gang

Re: [PATCH] Make do_sysinfo() static

2013-04-07 Thread Stephen Rothwell
Hi Al, On Mon, 8 Apr 2013 03:00:11 +0100 Al Viro v...@zeniv.linux.org.uk wrote: On Mon, Apr 08, 2013 at 11:53:25AM +1000, Stephen Rothwell wrote: The only use outside of kernel/timer.c was in kernel/compat.c, so move compat_sys_sysinfo() next to sys_sysinfo() in kernel/timer.c. Please,

Re: [patch v7 20/21] sched: don't do power balance on share cpu power domain

2013-04-07 Thread Preeti U Murthy
Hi Alex, On 04/04/2013 07:31 AM, Alex Shi wrote: Packing tasks among such domain can't save power, just performance losing. So no power balance on them. As far as my understanding goes, powersave policy is the one that tries to pack tasks onto a SIBLING domain( domain where SD_SHARE_CPUPOWER

Re: [patch v7 20/21] sched: don't do power balance on share cpu power domain

2013-04-07 Thread Preeti U Murthy
Hi Alex, I am sorry I overlooked the changes you have made to the power scheduling policies.Now you have just two : performance and powersave. Hence you can ignore my below comments.But if you use group-capacity instead of group-weight for threshold,like you did for balance policy in your

[PATCH] kernel: tsacct: strncpy, always be sure of NUL terminated.

2013-04-07 Thread Chen Gang
for NUL terminated string, always set '\0' at the end. Signed-off-by: Chen Gang gang.c...@asianux.com --- kernel/tsacct.c |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/kernel/tsacct.c b/kernel/tsacct.c index a1dd9a1..01bcc4e 100644 --- a/kernel/tsacct.c +++

[PATCH] clk: mvebu: Fix valid value range checking for cpu_freq_select

2013-04-07 Thread Axel Lin
cpu_freq_select is used as array subscript, thus the valid value range is 0 ... ARRAY_SIZE() - 1. Signed-off-by: Axel Lin axel@ingics.com --- drivers/clk/mvebu/clk-core.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/clk/mvebu/clk-core.c

[PATCH] Fix sortextable building on non-Linux systems

2013-04-07 Thread Daniel Tang
Hi, Is there any reason why 'tools/include/tools/be_byteshift.h' and 'tools/include/tools/le_byteshift.h' needs to include 'linux/types.h'? It breaks compilation of ARM kernels on OS X since sortextable, which uses those headers, fails to build because 'linux/types.h' doesn't exist. Included

[PATCH] kernel: events: strncpy, always be sure of NUL terminated.

2013-04-07 Thread Chen Gang
for NUL terminated string, always be sure of '\0' at the end. in our case, need return value, so still use strncpy (strlcpy return the size, not the pointer) Signed-off-by: Chen Gang gang.c...@asianux.com --- kernel/events/core.c |3 ++- 1 files changed, 2 insertions(+), 1

Re: [GIT PULL] extcon fixes for 3.9-rc6

2013-04-07 Thread Chanwoo Choi
On 04/08/2013 11:36 AM, Greg KH wrote: On Mon, Apr 08, 2013 at 11:02:14AM +0900, Chanwoo Choi wrote: Hi Greg, This is extcon fixes for 3.9-rc6 Please pull extcon with following updates. Best Regards and thanks, Chanwoo Choi The following changes since commit

Re: [PATCH] kernel: tsacct: strncpy, always be sure of NUL terminated.

2013-04-07 Thread KOSAKI Motohiro
On Sun, Apr 7, 2013 at 11:27 PM, Chen Gang gang.c...@asianux.com wrote: for NUL terminated string, always set '\0' at the end. Signed-off-by: Chen Gang gang.c...@asianux.com --- kernel/tsacct.c |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/kernel/tsacct.c

Re: [PATCH] clk: add helper to set flags for clk-provider

2013-04-07 Thread Mike Turquette
Quoting Sebastian Hesselbarth (2013-04-04 22:22:12) Clock providers are not allowed to mess with struct clk internals directly but using helpers provided by clk-provider.h. This patch adds a helper to allow to set flags of a clock after registration. This is useful, if clock flags change

Re: [PATCH] kernel: tsacct: strncpy, always be sure of NUL terminated.

2013-04-07 Thread Chen Gang
On 2013年04月08日 11:52, KOSAKI Motohiro wrote: On Sun, Apr 7, 2013 at 11:27 PM, Chen Gang gang.c...@asianux.com wrote: for NUL terminated string, always set '\0' at the end. Signed-off-by: Chen Gang gang.c...@asianux.com --- kernel/tsacct.c |3 ++- 1 files changed, 2

[PATCH] kernel: trace: strncpy, using strlcpy instead of strncpy

2013-04-07 Thread Chen Gang
for NUL terminated string, need always set '\0' at the end. Signed-off-by: Chen Gang gang.c...@asianux.com --- kernel/trace/trace.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/trace/trace.c b/kernel/trace/trace.c index 829b2be..07860b9 100644 ---

Re: [PATCH] Input: MT - handle semi-mt devices in core

2013-04-07 Thread Dmitry Torokhov
On Sun, Apr 07, 2013 at 09:41:32PM +0200, Henrik Rydberg wrote: Most semi-mt drivers use the slots in a manual way, but really only need to treat the finger count manually. With this patch, a semi-mt driver may use the input-mt core for everything else. Signed-off-by: Henrik Rydberg

[PATCH] kernel: trace: ftrace: strncpy, using strlcpy instead of strncpy

2013-04-07 Thread Chen Gang
for NUL terminated string, need always set '\0' at the end. Signed-off-by: Chen Gang gang.c...@asianux.com --- kernel/trace/ftrace.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/trace/ftrace.c b/kernel/trace/ftrace.c index dfd33f0..fa984b7 100644 ---

Re: [patch v7 20/21] sched: don't do power balance on share cpu power domain

2013-04-07 Thread Alex Shi
On 04/08/2013 11:25 AM, Preeti U Murthy wrote: Hi Alex, I am sorry I overlooked the changes you have made to the power scheduling policies.Now you have just two : performance and powersave. Hence you can ignore my below comments.But if you use group-capacity instead of group-weight for

linux-next: build failure after merge of the mfd tree

2013-04-07 Thread Stephen Rothwell
Hi Samuel, After merging the mfd tree, today's linux-next build (x86_64 allmodconfig) failed like this: drivers/regulator/anatop-regulator.c: In function 'anatop_regulator_probe': drivers/regulator/anatop-regulator.c:134:2: error: implicit declaration of function 'of_get_parent'

Re: [PATCH] [PATCH] Gaurantee spinlocks implicit barrier for !PREEMPT_COUNT

2013-04-07 Thread Vineet Gupta
Hi Linus, On 04/06/2013 09:43 PM, Linus Torvalds wrote: This is all *COMPLETELY* wrong. Neither the normal preempt macros, nor the plain spinlocks, should protect anything at all against interrupts. The real protection should come from the spin_lock_irqsave() in lock_timer_base(), not

Linux 3.9-rc6

2013-04-07 Thread Linus Torvalds
Things seem to be on track, and it's been a mostly boring week. Lots of small fixes, a few reverts. Networking, some small arch fixes (arm, mips, s390, alpha, tile, x86), drivers, minor filesystem updates (gfs2, ext4, tiny reiserfs xattr fix). Nothing really exciting stands out, I think the

Re: [PATCH] Add non-zero module sections to sysfs

2013-04-07 Thread Rusty Russell
Philip Kranz philip.kr...@googlemail.com writes: Hello. On Fri, Apr 05, 2013 at 12:07:15PM +0200, James Bottomley wrote: Just so you know: this isn't a parisc specific problem. Gcc produces duplicate section names under various circumstances, but the one that bites us is

Re: [PATCH] Make information about modules available to kgdb.

2013-04-07 Thread Rusty Russell
Greg KH gre...@linuxfoundation.org writes: On Sat, Apr 06, 2013 at 03:00:55PM +0200, Sebastian Wankerl wrote: From: Philip Kranz philip.kr...@googlemail.com To be able to properly debug kernel modules kgbd needs to know all SHF_ALLOC sections of the module. This patch add an array of those

linux-next: manual merge of the omap_dss2 tree with Linus' tree

2013-04-07 Thread Stephen Rothwell
Hi Tomi, Today's linux-next merge of the omap_dss2 tree got a conflict in drivers/video/fbmon.c between commit 477fc03f5baa (fbmon: use VESA_DMT_VSYNC_HIGH to fix typo) from Linus' tree and commit 06a3307975aa (videomode: combine videomode dmt_flags and data_flags) from the omap_dss2 tree. I

[PATCH v2] Make do_sysinfo() static

2013-04-07 Thread Stephen Rothwell
The only use outside of kernel/timer.c was in kernel/compat.c, so move compat_sys_sysinfo() next to sys_sysinfo() in kernel/timer.c. Signed-off-by: Stephen Rothwell s...@canb.auug.org.au --- include/linux/kernel.h | 2 -- kernel/compat.c| 65

Re: linux-next: build failure after merge of the mfd tree

2013-04-07 Thread Alexander Shiyan
Hello. After merging the mfd tree, today's linux-next build (x86_64 allmodconfig) failed like this: drivers/regulator/anatop-regulator.c: In function 'anatop_regulator_probe': drivers/regulator/anatop-regulator.c:134:2: error: implicit declaration of function 'of_get_parent'

Re: [PATCH] [PATCH] Gaurantee spinlocks implicit barrier for !PREEMPT_COUNT

2013-04-07 Thread Linus Torvalds
On Sun, Apr 7, 2013 at 9:20 PM, Vineet Gupta vineet.gup...@synopsys.com wrote: Christian had already proposed that change - only I was reluctant to take it - as local_irq_* is used heavily in a configuration of ARC700 linux where (!SMP) cpu doesn't support load-locked/store-conditional

Re: [PATCH] [PATCH] Gaurantee spinlocks implicit barrier for !PREEMPT_COUNT

2013-04-07 Thread Linus Torvalds
On Sun, Apr 7, 2013 at 9:20 PM, Vineet Gupta vineet.gup...@synopsys.com wrote: Would you be OK if I send the single patch to ARC by email (for 3.9-rc7) or you'd rather have the pull request. I got distracted by thinking about user-accesses vs preemption, but yes, sending the ARC patch to fix

Re: [PATCH 07/18] cpufreq: s3c24xx: move cpufreq driver to drivers/cpufreq

2013-04-07 Thread Viresh Kumar
On 5 April 2013 12:36, Viresh Kumar viresh.ku...@linaro.org wrote: On 5 April 2013 12:18, Kukjin Kim kgene@samsung.com wrote: Basically, this moving looks good to me, but should be re-worked based on for-next of samsung tree because this touches too many samsung stuff so this should be

[PATCH] Convert compat_sys_sysinfo to COMPAT_SYSCALL_DEFINE

2013-04-07 Thread Stephen Rothwell
Signed-off-by: Stephen Rothwell s...@canb.auug.org.au --- kernel/timer.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) This depends on my previous patch Make do_sysinfo() static. diff --git a/kernel/timer.c b/kernel/timer.c index 06b3245..f0e6588 100644 --- a/kernel/timer.c +++

Re: [PATCH] RFC: mmc: dw_mmc: Always go to STATE_DATA_BUSY from STATE_DATA_ERROR

2013-04-07 Thread Jaehoon Chung
Looks good to me. Reviewed-by: Jaehoon Chung jh80.ch...@samsung.com Best Regards, Jaehoon Chung On 04/05/2013 05:18 PM, Jaehoon Chung wrote: Hi Doug, You're right..it's something wrong. Actually i didn't test with your patch, but your commit message is reasonable. I will check until

Re: [PATCH v8 1/2] ARM: davinci: dm365: add support for v4l2 video display

2013-04-07 Thread Prabhakar Lad
Sekhar, On Thu, Apr 4, 2013 at 3:03 PM, Sekhar Nori nsek...@ti.com wrote: On 4/2/2013 5:24 PM, Prabhakar lad wrote: From: Lad, Prabhakar prabhakar.cse...@gmail.com Create platform devices for various video modules like venc,osd, vpbe and v4l2 driver for dm365. Signed-off-by: Lad, Prabhakar

Re: [RFC PATCH] watchdog: Add hook for kicking in kdump path

2013-04-07 Thread Dave Young
On 04/06/2013 04:16 AM, Don Zickus wrote: A common problem with kdump is that during the boot up of the second kernel, the hardware watchdog times out and reboots the machine before a vmcore can be captured. Instead of tellling customers to disable their hardware watchdog timers, I hacked

Re: [PATCH -next] virtio_console: make local symbols static

2013-04-07 Thread Amit Shah
On (Sat) 06 Apr 2013 [11:52:07], Wei Yongjun wrote: From: Wei Yongjun yongjun_...@trendmicro.com.cn Those symbols only used within this file, and should be static. Signed-off-by: Wei Yongjun yongjun_...@trendmicro.com.cn Acked-by: Amit Shah amit.s...@redhat.com Amit -- To

Re: [PATCH 1/2] hfsplus: add error propagation to __hfsplus_ext_write_extent()

2013-04-07 Thread Vyacheslav Dubeyko
Hi Alexey, On Mon, 2013-04-08 at 01:21 +0400, Alexey Khoroshilov wrote: __hfsplus_ext_write_extent() suppresses errors coming from hfs_brec_find(). The patch implements error code propagation. Please, prepare a single patch set for all your changes in HFS and HFS+. These changes are related

RE: [PATCH 0/2] Update device tree binding document for pwm-tiehrpwm pwm-tiecap

2013-04-07 Thread Philip, Avinash
Thierry, On Mon, Mar 25, 2013 at 12:34:51, Philip, Avinash wrote: Update device tree document of pwm-tiehrpwm pwm-tiecap in order to reflect the usage of similar modules in both da850 and am33xx platforms. Can you accept both documentation update patches with Peter Korsgaard's Ack. Thanks

<    1   2   3   4   5   6