[PATCH] ipmi:ssif: make ssif_i2c_send() void

2021-03-01 Thread Liguang Zhang
This function actually needs no return value. So remove the unneeded check and make it void. Signed-off-by: Liguang Zhang --- drivers/char/ipmi/ipmi_ssif.c | 81 +-- 1 file changed, 20 insertions(+), 61 deletions(-) diff --git a/drivers/char/ipmi/ipmi_ssif.c b

[PATCH v2] i2c: designware: Get right data length

2021-02-25 Thread Liguang Zhang
to get the real data length. Signed-off-by: Liguang Zhang --- drivers/i2c/busses/i2c-designware-core.h | 2 ++ drivers/i2c/busses/i2c-designware-master.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/i2c/busses/i2c-designware-core.h b/drivers/i2c/busses/i2c

[PATCH] i2c: designware: Get right data length

2021-02-24 Thread Liguang Zhang
to get the right data length. Signed-off-by: Liguang Zhang --- drivers/i2c/busses/i2c-designware-master.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/i2c/busses/i2c-designware-master.c b/drivers/i2c/busses/i2c-designware-master.c index d6425ad6e6a3..c3cf76f6c607

[PATCH] arm64/cpuinfo: Show right CPU architecture information

2021-01-19 Thread Liguang Zhang
CPU architecture is assigned to be a fixed value, it should be obtained from midr register. Signed-off-by: Liguang Zhang --- arch/arm64/kernel/cpuinfo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/kernel/cpuinfo.c b/arch/arm64/kernel/cpuinfo.c index

[PATCH] arm64: traps: clean up arm64_ras_serror_get_severity()

2020-08-12 Thread Liguang Zhang
Function arm64_is_fatal_ras_serror() is always called after arm64_is_ras_serror(), so we should remove some needless arm64_is_ras_serror() call in function arm64_ras_serror_get_severity(). Signed-off-by: Liguang Zhang --- arch/arm64/include/asm/traps.h | 9 + arch/arm64/kernel/traps.c

[PATCH RFC v2 0/3] add cpu physically hotplug driver

2013-06-05 Thread liguang
This patch-set try to support physically hot-plug/unplug a cpu automatically, that is: if you offline a cpu, it will automatically actually remove a cpu, and if you hot-plug a cpu, then it will online this cpu automatically. so, offline is just like eject, but eject attribute seems not available

[PATCH RFC v2 2/3] ec: add ec space notifier

2013-06-05 Thread liguang
add a notifier for anyone who are instresting in ec space changing. Signed-off-by: liguang --- drivers/acpi/ec.c| 32 include/linux/acpi.h |2 ++ 2 files changed, 34 insertions(+), 0 deletions(-) diff --git a/drivers/acpi/ec.c b/drivers/acpi/ec.c

[PATCH RFC v2 1/3] drivers/platform/x86: add cpu physically hotplug driver

2013-06-05 Thread liguang
." is only present for recent kernel (sorry, can't figure out since when), for a little older kernel, there's not such approach AFAICS. Signed-off-by: liguang --- drivers/platform/x86/Kconfig |8 drivers/platform/x86/Makefile |1 + drivers/platform/x86/cpu_

[PATCH RFC v2 3/3] cpu_physic_hotplug: register handler for ec space notifier

2013-06-05 Thread liguang
Signed-off-by: liguang --- drivers/platform/x86/cpu_physic_hotplug.c | 30 ++-- 1 files changed, 27 insertions(+), 3 deletions(-) diff --git a/drivers/platform/x86/cpu_physic_hotplug.c b/drivers/platform/x86/cpu_physic_hotplug.c index a52c042..1cdac1b 100644

[PATCH RFC 1/3] drivers/platform/x86: add cpu physically hotplug driver

2013-06-05 Thread liguang
." is only present for recent kernel (sorry, can't figure out since when), for a little older kernel, there's not such approach AFAICS. Signed-off-by: liguang --- drivers/platform/x86/Kconfig |8 drivers/platform/x86/Makefile |1 + drivers/platform/x86/cpu_

[PATCH RFC 2/3] ec: add ec space notifier

2013-06-05 Thread liguang
add a notifier for anyone who are instresting in ec space changing. Signed-off-by: liguang --- drivers/acpi/ec.c| 32 include/linux/acpi.h |2 ++ 2 files changed, 34 insertions(+), 0 deletions(-) diff --git a/drivers/acpi/ec.c b/drivers/acpi/ec.c

[PATCH RFC 3/3] cpu_physic_hotplug: register handler for ec space notifier

2013-06-05 Thread liguang
Signed-off-by: liguang --- drivers/platform/x86/cpu_physic_hotplug.c | 27 +-- 1 files changed, 25 insertions(+), 2 deletions(-) diff --git a/drivers/platform/x86/cpu_physic_hotplug.c b/drivers/platform/x86/cpu_physic_hotplug.c index a52c042..a84c999 100644

[PATCH RFC 0/3] add cpu physically hotplug driver

2013-06-05 Thread liguang
This patch-set try to support physically hot-plug/unplug a cpu automatically, that is: if you offline a cpu, it will automatically actually remove a cpu, and if you hot-plug a cpu, then it will online this cpu automatically. so, offline is just like eject, but eject attribute seems not available

[PATCH RFC 0/3] add cpu physically hotplug driver

2013-06-05 Thread liguang
This patch-set try to support physically hot-plug/unplug a cpu automatically, that is: if you offline a cpu, it will automatically actually remove a cpu, and if you hot-plug a cpu, then it will online this cpu automatically. so, offline is just like eject, but eject attribute seems not available

[PATCH RFC 1/3] drivers/platform/x86: add cpu physically hotplug driver

2013-06-05 Thread liguang
kernel (sorry, can't figure out since when), for a little older kernel, there's not such approach AFAICS. Signed-off-by: liguang lig.f...@cn.fujitsu.com --- drivers/platform/x86/Kconfig |8 drivers/platform/x86/Makefile |1 + drivers/platform/x86

[PATCH RFC 2/3] ec: add ec space notifier

2013-06-05 Thread liguang
add a notifier for anyone who are instresting in ec space changing. Signed-off-by: liguang lig.f...@cn.fujitsu.com --- drivers/acpi/ec.c| 32 include/linux/acpi.h |2 ++ 2 files changed, 34 insertions(+), 0 deletions(-) diff --git a/drivers/acpi/ec.c b

[PATCH RFC 3/3] cpu_physic_hotplug: register handler for ec space notifier

2013-06-05 Thread liguang
Signed-off-by: liguang lig.f...@cn.fujitsu.com --- drivers/platform/x86/cpu_physic_hotplug.c | 27 +-- 1 files changed, 25 insertions(+), 2 deletions(-) diff --git a/drivers/platform/x86/cpu_physic_hotplug.c b/drivers/platform/x86/cpu_physic_hotplug.c index a52c042

[PATCH RFC v2 3/3] cpu_physic_hotplug: register handler for ec space notifier

2013-06-05 Thread liguang
Signed-off-by: liguang lig.f...@cn.fujitsu.com --- drivers/platform/x86/cpu_physic_hotplug.c | 30 ++-- 1 files changed, 27 insertions(+), 3 deletions(-) diff --git a/drivers/platform/x86/cpu_physic_hotplug.c b/drivers/platform/x86/cpu_physic_hotplug.c index a52c042

[PATCH RFC v2 2/3] ec: add ec space notifier

2013-06-05 Thread liguang
add a notifier for anyone who are instresting in ec space changing. Signed-off-by: liguang lig.f...@cn.fujitsu.com --- drivers/acpi/ec.c| 32 include/linux/acpi.h |2 ++ 2 files changed, 34 insertions(+), 0 deletions(-) diff --git a/drivers/acpi/ec.c b

[PATCH RFC v2 0/3] add cpu physically hotplug driver

2013-06-05 Thread liguang
This patch-set try to support physically hot-plug/unplug a cpu automatically, that is: if you offline a cpu, it will automatically actually remove a cpu, and if you hot-plug a cpu, then it will online this cpu automatically. so, offline is just like eject, but eject attribute seems not available

[PATCH RFC v2 1/3] drivers/platform/x86: add cpu physically hotplug driver

2013-06-05 Thread liguang
kernel (sorry, can't figure out since when), for a little older kernel, there's not such approach AFAICS. Signed-off-by: liguang lig.f...@cn.fujitsu.com --- drivers/platform/x86/Kconfig |8 drivers/platform/x86/Makefile |1 + drivers/platform/x86

[PATCH 2/2] xen: remove bm_rld_set of xen_processor_flags

2013-06-04 Thread liguang
bm_rld_set seems obsolete now Signed-off-by: liguang --- include/xen/interface/platform.h |1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/include/xen/interface/platform.h b/include/xen/interface/platform.h index c57d5f6..733 100644 --- a/include/xen/interface

[PATCH 1/2] acpi/processor: remove bm_rld_set of acpi_processor_flags

2013-06-04 Thread liguang
bm_rld_set seems obsolete now Signed-off-by: liguang --- include/acpi/processor.h |1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/include/acpi/processor.h b/include/acpi/processor.h index ea69367..cfec509 100644 --- a/include/acpi/processor.h +++ b/include/acpi

[PATCH 2/2] xen: remove bm_rld_set of xen_processor_flags

2013-06-04 Thread liguang
bm_rld_set seems obsolete now Signed-off-by: liguang lig.f...@cn.fujitsu.com --- include/xen/interface/platform.h |1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/include/xen/interface/platform.h b/include/xen/interface/platform.h index c57d5f6..733 100644

[PATCH 1/2] acpi/processor: remove bm_rld_set of acpi_processor_flags

2013-06-04 Thread liguang
bm_rld_set seems obsolete now Signed-off-by: liguang lig.f...@cn.fujitsu.com --- include/acpi/processor.h |1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/include/acpi/processor.h b/include/acpi/processor.h index ea69367..cfec509 100644 --- a/include/acpi/processor.h

[PATCH 2/4] sys: remove kernel_shutdown_prepare's parameter

2013-05-30 Thread liguang
kernel_shutdown_prepare's parameter can be removed by checking global 'system_state', so, maybe we can save a register to be used :-). Signed-off-by: liguang --- kernel/sys.c | 11 ++- 1 files changed, 6 insertions(+), 5 deletions(-) diff --git a/kernel/sys.c b/kernel/sys.c index

[PATCH 3/4] sys/reboot: boolize C_A_D

2013-05-30 Thread liguang
Signed-off-by: liguang --- include/linux/reboot.h |2 +- kernel/sys.c |6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/linux/reboot.h b/include/linux/reboot.h index 23b3630..a8c5e4c 100644 --- a/include/linux/reboot.h +++ b/include/linux

[PATCH 4/4] sys: fix malformed panic massage of reboot

2013-05-30 Thread liguang
if LINUX_REBOOT_CMD_HALT for reboot failed, message "cannot halt" will stay in same line with next message, so append a '\n' for it. Signed-off-by: liguang --- kernel/sys.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/kernel/sys.c b/kernel/sys.c ind

[PATCH 1/4] sys: remove unnecesscary parameter of set_one_prio

2013-05-30 Thread liguang
Signed-off-by: liguang --- kernel/sys.c | 12 +--- 1 files changed, 5 insertions(+), 7 deletions(-) diff --git a/kernel/sys.c b/kernel/sys.c index b95d3c7..07c6177 100644 --- a/kernel/sys.c +++ b/kernel/sys.c @@ -151,9 +151,9 @@ static bool set_one_prio_perm(struct task_struct *p

[PATCHv2] powerpc/pseries: use 'true' instead of '1' for orderly_poweroff

2013-05-30 Thread liguang
orderly_poweroff is expecting a bool parameter, so use 'true' instead '1' Signed-off-by: liguang --- arch/powerpc/platforms/pseries/ras.c |8 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/powerpc/platforms/pseries/ras.c b/arch/powerpc/platforms/pseries/ras.c

[PATCH] powerpc/pseries: use 'true' instead of '1' for orderly_poweroff

2013-05-30 Thread liguang
orderly_poweroff is expecting a bool parameter, so use 'ture' instead '1' Signed-off-by: liguang --- arch/powerpc/platforms/pseries/ras.c |8 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/powerpc/platforms/pseries/ras.c b/arch/powerpc/platforms/pseries/ras.c

[PATCH] powerpc/smp: use '==' instead of '<' for system_state

2013-05-30 Thread liguang
'system_state < SYSTEM_RUNNING' will have same effect with 'system_state == SYSTEM_BOOTING', but the later one is more clearer. Signed-off-by: liguang --- arch/powerpc/platforms/cell/smp.c|2 +- arch/powerpc/platforms/powernv/smp.c |2 +- arch/powerpc/platforms/pseries/smp.c |

[PATCH] powerpc/smp: use '==' instead of '' for system_state

2013-05-30 Thread liguang
'system_state SYSTEM_RUNNING' will have same effect with 'system_state == SYSTEM_BOOTING', but the later one is more clearer. Signed-off-by: liguang lig.f...@cn.fujitsu.com --- arch/powerpc/platforms/cell/smp.c|2 +- arch/powerpc/platforms/powernv/smp.c |2 +- arch/powerpc/platforms

[PATCH] powerpc/pseries: use 'true' instead of '1' for orderly_poweroff

2013-05-30 Thread liguang
orderly_poweroff is expecting a bool parameter, so use 'ture' instead '1' Signed-off-by: liguang lig.f...@cn.fujitsu.com --- arch/powerpc/platforms/pseries/ras.c |8 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/powerpc/platforms/pseries/ras.c b/arch/powerpc

[PATCHv2] powerpc/pseries: use 'true' instead of '1' for orderly_poweroff

2013-05-30 Thread liguang
orderly_poweroff is expecting a bool parameter, so use 'true' instead '1' Signed-off-by: liguang lig.f...@cn.fujitsu.com --- arch/powerpc/platforms/pseries/ras.c |8 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/powerpc/platforms/pseries/ras.c b/arch/powerpc

[PATCH 1/4] sys: remove unnecesscary parameter of set_one_prio

2013-05-30 Thread liguang
Signed-off-by: liguang lig.f...@cn.fujitsu.com --- kernel/sys.c | 12 +--- 1 files changed, 5 insertions(+), 7 deletions(-) diff --git a/kernel/sys.c b/kernel/sys.c index b95d3c7..07c6177 100644 --- a/kernel/sys.c +++ b/kernel/sys.c @@ -151,9 +151,9 @@ static bool set_one_prio_perm

[PATCH 3/4] sys/reboot: boolize C_A_D

2013-05-30 Thread liguang
Signed-off-by: liguang lig.f...@cn.fujitsu.com --- include/linux/reboot.h |2 +- kernel/sys.c |6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/linux/reboot.h b/include/linux/reboot.h index 23b3630..a8c5e4c 100644 --- a/include/linux/reboot.h

[PATCH 4/4] sys: fix malformed panic massage of reboot

2013-05-30 Thread liguang
if LINUX_REBOOT_CMD_HALT for reboot failed, message cannot halt will stay in same line with next message, so append a '\n' for it. Signed-off-by: liguang lig.f...@cn.fujitsu.com --- kernel/sys.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/kernel/sys.c b/kernel/sys.c

[PATCH 2/4] sys: remove kernel_shutdown_prepare's parameter

2013-05-30 Thread liguang
kernel_shutdown_prepare's parameter can be removed by checking global 'system_state', so, maybe we can save a register to be used :-). Signed-off-by: liguang lig.f...@cn.fujitsu.com --- kernel/sys.c | 11 ++- 1 files changed, 6 insertions(+), 5 deletions(-) diff --git a/kernel/sys.c b

[PATCH] cpu remove CONFIG_INIT_ALL_POSSIBLE check

2013-05-15 Thread liguang
seems CONFIG_INIT_ALL_POSSIBLE is obsolete now. Signed-off-by: liguang --- kernel/cpu.c |5 - 1 files changed, 0 insertions(+), 5 deletions(-) diff --git a/kernel/cpu.c b/kernel/cpu.c index cd166d3..2697d1a 100644 --- a/kernel/cpu.c +++ b/kernel/cpu.c @@ -662,12 +662,7

[PATCH] cpu remove CONFIG_INIT_ALL_POSSIBLE check

2013-05-15 Thread liguang
seems CONFIG_INIT_ALL_POSSIBLE is obsolete now. Signed-off-by: liguang lig.f...@cn.fujitsu.com --- kernel/cpu.c |5 - 1 files changed, 0 insertions(+), 5 deletions(-) diff --git a/kernel/cpu.c b/kernel/cpu.c index cd166d3..2697d1a 100644 --- a/kernel/cpu.c +++ b/kernel/cpu.c @@ -662,12

[PATCH] cpu: rid cpu_hotplug_disabled check for cpu_down()

2013-04-28 Thread liguang
in cpu_down(), _cpu_down() will do " if (num_online_cpus() == 1) return -EBUSY; " when cpu_hotplug_disabled was set, num_online_cpus will return 1 for there's only 1 boot cpu. so, it's unnecessary to check cpu_hotplug_disabled here. Signed-off-by: liguang -

[PATCH] cpu: rid cpu_hotplug_disabled check for cpu_down()

2013-04-28 Thread liguang
in cpu_down(), _cpu_down() will do if (num_online_cpus() == 1) return -EBUSY; when cpu_hotplug_disabled was set, num_online_cpus will return 1 for there's only 1 boot cpu. so, it's unnecessary to check cpu_hotplug_disabled here. Signed-off-by: liguang lig.f

[PATCH] drivers: idle: comment DEBUG

2013-04-25 Thread liguang
seems we should comment DEBUG as above comment said: "/* un-comment DEBUG to enable pr_debug() statements */" now, pr_debug is already enabled as DEBUG been defined. Signed-off-by: liguang --- drivers/idle/intel_idle.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-)

[PATCH] drivers: idle: comment DEBUG

2013-04-25 Thread liguang
seems we should comment DEBUG as above comment said: /* un-comment DEBUG to enable pr_debug() statements */ now, pr_debug is already enabled as DEBUG been defined. Signed-off-by: liguang lig.f...@cn.fujitsu.com --- drivers/idle/intel_idle.c |2 +- 1 files changed, 1 insertions(+), 1

[PATCH 2/2] smp: remove 'priv' of call_single_data

2013-04-21 Thread liguang
the 'priv' field seems a little redundant, because we can pass data via 'info'. Signed-off-by: liguang --- include/linux/smp.h |1 - kernel/softirq.c|6 ++ 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/include/linux/smp.h b/include/linux/smp.h index 3e07a7d

[PATCH 1/2] smp: use '|=' for csd_lock

2013-04-21 Thread liguang
ar 1 bit. Signed-off-by: liguang --- kernel/smp.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/kernel/smp.c b/kernel/smp.c index 1818dc0..2d5deb4 100644 --- a/kernel/smp.c +++ b/kernel/smp.c @@ -109,7 +109,7 @@ static void csd_lock_wait(struct call_single_data *d

[PATCH 1/2] smp: use '|=' for csd_lock

2013-04-21 Thread liguang
-by: liguang lig.f...@cn.fujitsu.com --- kernel/smp.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/kernel/smp.c b/kernel/smp.c index 1818dc0..2d5deb4 100644 --- a/kernel/smp.c +++ b/kernel/smp.c @@ -109,7 +109,7 @@ static void csd_lock_wait(struct call_single_data *data

[PATCH 2/2] smp: remove 'priv' of call_single_data

2013-04-21 Thread liguang
the 'priv' field seems a little redundant, because we can pass data via 'info'. Signed-off-by: liguang lig.f...@cn.fujitsu.com --- include/linux/smp.h |1 - kernel/softirq.c|6 ++ 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/include/linux/smp.h b/include/linux

[PATCH][update] Makefile: allow no update .config build

2013-03-28 Thread liguang
if we pull some commits from other git repo which bring in a few CONFIG_* options, then we have to build all again, but we do assure these options are not interesting for us, so the long waiting build will be offending. this change help us to avoid all-build. Signed-off-by: liguang --- Makefile

[PATCH] Makefile: allow no update .config build

2013-03-28 Thread liguang
if we pull some commits from other git repo which bring in a few CONFIG_* options, then we have to build all again, but we do assure these options are not interesting for us, so the long waiting build will be offending. this change help us to avoid all-build. Signed-off-by: liguang --- Makefile

[PATCH][update] Makefile: allow no update .config build

2013-03-28 Thread liguang
if we pull some commits from other git repo which bring in a few CONFIG_* options, then we have to build all again, but we do assure these options are not interesting for us, so the long waiting build will be offending. this change help us to avoid all-build. Signed-off-by: liguang lig.f

[PATCH] Makefile: allow no update .config build

2013-03-28 Thread liguang
if we pull some commits from other git repo which bring in a few CONFIG_* options, then we have to build all again, but we do assure these options are not interesting for us, so the long waiting build will be offending. this change help us to avoid all-build. Signed-off-by: liguang lig.f

[tip:perf/core] perf tools: Sort command-list.txt alphabetically

2013-03-21 Thread tip-bot for liguang
Commit-ID: 66857b5a8bc61b0c5e7a9c96f02558ef6d4109c6 Gitweb: http://git.kernel.org/tip/66857b5a8bc61b0c5e7a9c96f02558ef6d4109c6 Author: liguang AuthorDate: Tue, 26 Feb 2013 12:12:52 +0800 Committer: Arnaldo Carvalho de Melo CommitDate: Fri, 15 Mar 2013 13:05:59 -0300 perf tools: Sort

[tip:perf/core] perf tools: Sort command-list.txt alphabetically

2013-03-21 Thread tip-bot for liguang
Commit-ID: 66857b5a8bc61b0c5e7a9c96f02558ef6d4109c6 Gitweb: http://git.kernel.org/tip/66857b5a8bc61b0c5e7a9c96f02558ef6d4109c6 Author: liguang lig.f...@cn.fujitsu.com AuthorDate: Tue, 26 Feb 2013 12:12:52 +0800 Committer: Arnaldo Carvalho de Melo a...@redhat.com CommitDate: Fri, 15 Mar

[PATCH 1/2] task_work: make FIFO task_work list

2013-03-14 Thread liguang
Signed-off-by: liguang --- kernel/task_work.c | 15 +++ 1 files changed, 3 insertions(+), 12 deletions(-) diff --git a/kernel/task_work.c b/kernel/task_work.c index 65bd3c9..0bf4258 100644 --- a/kernel/task_work.c +++ b/kernel/task_work.c @@ -13,11 +13,12 @@ task_work_add(struct

[PATCH 2/2] task_work: check callback if it's NULL

2013-03-14 Thread liguang
Signed-off-by: liguang --- kernel/task_work.c |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/kernel/task_work.c b/kernel/task_work.c index 0bf4258..f458b08 100644 --- a/kernel/task_work.c +++ b/kernel/task_work.c @@ -75,7 +75,8 @@ void task_work_run(void

[PATCH 1/2] task_work: make FIFO task_work list

2013-03-14 Thread liguang
Signed-off-by: liguang lig.f...@cn.fujitsu.com --- kernel/task_work.c | 15 +++ 1 files changed, 3 insertions(+), 12 deletions(-) diff --git a/kernel/task_work.c b/kernel/task_work.c index 65bd3c9..0bf4258 100644 --- a/kernel/task_work.c +++ b/kernel/task_work.c @@ -13,11 +13,12

[PATCH 2/2] task_work: check callback if it's NULL

2013-03-14 Thread liguang
Signed-off-by: liguang lig.f...@cn.fujitsu.com --- kernel/task_work.c |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/kernel/task_work.c b/kernel/task_work.c index 0bf4258..f458b08 100644 --- a/kernel/task_work.c +++ b/kernel/task_work.c @@ -75,7 +75,8 @@ void

[PATCH 2/2] semaphore: boolize semaphore_waiter's up

2013-03-01 Thread liguang
Signed-off-by: liguang --- kernel/semaphore.c |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/kernel/semaphore.c b/kernel/semaphore.c index 9c7017d..6815171 100644 --- a/kernel/semaphore.c +++ b/kernel/semaphore.c @@ -193,7 +193,7 @@ EXPORT_SYMBOL(up); struct

[PATCH 1/2] semaphore: give an unlikely for down's timeout

2013-03-01 Thread liguang
Signed-off-by: liguang --- kernel/semaphore.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/kernel/semaphore.c b/kernel/semaphore.c index 4567fc0..9c7017d 100644 --- a/kernel/semaphore.c +++ b/kernel/semaphore.c @@ -214,7 +214,7 @@ static inline int __sched

[PATCH 1/2] semaphore: give an unlikely for down's timeout

2013-03-01 Thread liguang
Signed-off-by: liguang lig.f...@cn.fujitsu.com --- kernel/semaphore.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/kernel/semaphore.c b/kernel/semaphore.c index 4567fc0..9c7017d 100644 --- a/kernel/semaphore.c +++ b/kernel/semaphore.c @@ -214,7 +214,7 @@ static inline

[PATCH 2/2] semaphore: boolize semaphore_waiter's up

2013-03-01 Thread liguang
Signed-off-by: liguang lig.f...@cn.fujitsu.com --- kernel/semaphore.c |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/kernel/semaphore.c b/kernel/semaphore.c index 9c7017d..6815171 100644 --- a/kernel/semaphore.c +++ b/kernel/semaphore.c @@ -193,7 +193,7

[PATCH 2/2] x86: add e820 descriptor attribute field

2013-02-28 Thread liguang
according to ACPI 5.0 Table 15-273 Address Range Descriptor Structure, offset 20 is 32-bit field of Extended Attributes for Address Range Descriptor Structure. Signed-off-by: liguang --- arch/x86/include/uapi/asm/e820.h |7 ++- 1 files changed, 6 insertions(+), 1 deletions(-) diff

[PATCH 1/2] x86: change names of e820 memory map type

2013-02-28 Thread liguang
E820_RAM -> E820_TYPE_RAM E820_ACPI-> E820_TYPE_ACPI ... names like E820_RAM is conflict-prone, because user is more likely to define a macro like this if did not strongly aware this name have been defined by e820.h Signed-off-by: liguang --- arch/x86/boot/compressed/eboot.c

[PATCH 1/2] x86: change names of e820 memory map type

2013-02-28 Thread liguang
E820_RAM - E820_TYPE_RAM E820_ACPI- E820_TYPE_ACPI ... names like E820_RAM is conflict-prone, because user is more likely to define a macro like this if did not strongly aware this name have been defined by e820.h Signed-off-by: liguang lig.f...@cn.fujitsu.com --- arch/x86/boot/compressed

[PATCH 2/2] x86: add e820 descriptor attribute field

2013-02-28 Thread liguang
according to ACPI 5.0 Table 15-273 Address Range Descriptor Structure, offset 20 is 32-bit field of Extended Attributes for Address Range Descriptor Structure. Signed-off-by: liguang lig.f...@cn.fujitsu.com --- arch/x86/include/uapi/asm/e820.h |7 ++- 1 files changed, 6 insertions(+), 1

[PATCH 3/3] perf: add dwarf regs map for mips

2013-02-25 Thread liguang
Signed-off-by: liguang --- tools/perf/arch/mips/Makefile |4 +++ tools/perf/arch/mips/util/dwarf-regs.c | 33 2 files changed, 37 insertions(+), 0 deletions(-) create mode 100644 tools/perf/arch/mips/Makefile create mode 100644 tools/perf/arch

[PATCH 1/3] perf: sort command-list.txt by alphabet order

2013-02-25 Thread liguang
Signed-off-by: liguang --- tools/perf/command-list.txt | 14 +++--- 1 files changed, 7 insertions(+), 7 deletions(-) diff --git a/tools/perf/command-list.txt b/tools/perf/command-list.txt index 3e86bbd..a28e31b 100644 --- a/tools/perf/command-list.txt +++ b/tools/perf/command-list.txt

[PATCH 2/3] perf: correct a build error

2013-02-25 Thread liguang
builtin-annotate.c: In function 'hists__find_annotations': builtin-annotate.c:161:4: error: duplicate case value builtin-annotate.c:154:4: error: previously used here it happened when no newt installed Signed-off-by: liguang --- tools/perf/util/hist.h |4 ++-- 1 files changed, 2 insertions

[rebased-again-again][PATCH 1/4] acpi: move x86/mm/srat.c to x86/kernel/acpi/srat.c

2013-02-25 Thread liguang
srat table should present only on acpi domain, seems mm/ is not the right place for it. Reviewed-by: Yasuaki Ishimatsu Signed-off-by: liguang --- arch/x86/kernel/acpi/Makefile |1 + arch/x86/kernel/acpi/srat.c | 317 + arch/x86/mm/Makefile

[PATCH 1/3] perf: sort command-list.txt by alphabet order

2013-02-25 Thread liguang
Signed-off-by: liguang lig.f...@cn.fujitsu.com --- tools/perf/command-list.txt | 14 +++--- 1 files changed, 7 insertions(+), 7 deletions(-) diff --git a/tools/perf/command-list.txt b/tools/perf/command-list.txt index 3e86bbd..a28e31b 100644 --- a/tools/perf/command-list.txt +++ b

[PATCH 2/3] perf: correct a build error

2013-02-25 Thread liguang
builtin-annotate.c: In function 'hists__find_annotations': builtin-annotate.c:161:4: error: duplicate case value builtin-annotate.c:154:4: error: previously used here it happened when no newt installed Signed-off-by: liguang lig.f...@cn.fujitsu.com --- tools/perf/util/hist.h |4 ++-- 1

[PATCH 3/3] perf: add dwarf regs map for mips

2013-02-25 Thread liguang
Signed-off-by: liguang lig.f...@cn.fujitsu.com --- tools/perf/arch/mips/Makefile |4 +++ tools/perf/arch/mips/util/dwarf-regs.c | 33 2 files changed, 37 insertions(+), 0 deletions(-) create mode 100644 tools/perf/arch/mips/Makefile create mode

[rebased-again-again][PATCH 1/4] acpi: move x86/mm/srat.c to x86/kernel/acpi/srat.c

2013-02-25 Thread liguang
srat table should present only on acpi domain, seems mm/ is not the right place for it. Reviewed-by: Yasuaki Ishimatsu isimatu.yasu...@jp.fujitsu.com Signed-off-by: liguang lig.f...@cn.fujitsu.com --- arch/x86/kernel/acpi/Makefile |1 + arch/x86/kernel/acpi/srat.c | 317

[rebased-again][PATCH 0/4] acpi: do some changes for numa info

2013-02-24 Thread liguang
just do some trivial changes to make acpi's numa info operation more cleaner. ChangeLog v3->v4 1.fix srat_disabled function spotted by Yasuaki Ishimatsu v2->v3 1. rebase on linux-next 2. bring back lost Makefile changes spotted by David Rientjes spotted by Yasuaki Ishimatsu v1->v2 1.

[rebased-again][PATCH 1/4] acpi: move x86/mm/srat.c to x86/kernel/acpi/srat.c

2013-02-24 Thread liguang
srat table should present only on acpi domain, seems mm/ is not the right place for it. Reviewed-by: Yasuaki Ishimatsu Signed-off-by: liguang --- arch/x86/kernel/acpi/Makefile |1 + arch/x86/kernel/acpi/srat.c | 284 + arch/x86/mm/Makefile

[rebased-again][PATCH 1/4] acpi: move x86/mm/srat.c to x86/kernel/acpi/srat.c

2013-02-24 Thread liguang
srat table should present only on acpi domain, seems mm/ is not the right place for it. Reviewed-by: Yasuaki Ishimatsu isimatu.yasu...@jp.fujitsu.com Signed-off-by: liguang lig.f...@cn.fujitsu.com --- arch/x86/kernel/acpi/Makefile |1 + arch/x86/kernel/acpi/srat.c | 284

[rebased-again][PATCH 0/4] acpi: do some changes for numa info

2013-02-24 Thread liguang
just do some trivial changes to make acpi's numa info operation more cleaner. ChangeLog v3-v4 1.fix srat_disabled function spotted by Yasuaki Ishimatsu isimatu.yasu...@jp.fujitsu.com v2-v3 1. rebase on linux-next 2. bring back lost Makefile changes spotted by David Rientjes

[rebased][PATCH 0/4] acpi: do some changes for numa info

2013-02-21 Thread liguang
just do some trivial changes to make acpi's numa info operation more cleaner. ChangeLog v3->v4 1.fix srat_disabled function spotted by Yasuaki Ishimatsu v2->v3 1. rebase on linux-next 2. bring back lost Makefile changes spotted by David Rientjes spotted by Yasuaki Ishimatsu v1->v2 1.

[rebased][PATCH 2/4] numa: avoid export acpi_numa variable

2013-02-21 Thread liguang
a fuction to get srat table enable/disable info. Signed-off-by: liguang --- arch/x86/include/asm/acpi.h |2 +- arch/x86/kernel/acpi/srat.c | 21 + arch/x86/mm/numa.c |2 +- arch/x86/xen/enlighten.c|2 +- 4 files changed, 16 insertions(+), 11 deletions

[rebased][PATCH 4/4] remove include asm/acpi.h in process_driver.c

2013-02-21 Thread liguang
process_driver.c include linux/acpi.h which already include asm/acpi.h, so remove it. Reviewed-by: Yasuaki Ishimatsu Acked-by: David Rientjes Signed-off-by: liguang --- drivers/acpi/processor_driver.c |1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/drivers/acpi

[rebased][PATCH 1/4] acpi: move x86/mm/srat.c to x86/kernel/acpi/srat.c

2013-02-21 Thread liguang
srat table should present only on acpi domain, seems mm/ is not the right place for it. Reviewed-by: Yasuaki Ishimatsu Signed-off-by: liguang --- arch/x86/kernel/acpi/Makefile |1 + arch/x86/kernel/acpi/srat.c | 278 + arch/x86/mm/Makefile

[rebased][PATCH 3/4] acpi: add clock_domain field to acpi_srat_cpu_affinity

2013-02-21 Thread liguang
according to ACPI SPEC v5.0, page 152, 5.2.16.1 Processor Local APIC/SAPIC Affinity Structure, the last member of it is clock_domain. Reviewed-by: Yasuaki Ishimatsu Acked-by: David Rientjes Signed-off-by: liguang --- include/acpi/actbl1.h |2 +- 1 files changed, 1 insertions(+), 1

[rebased][PATCH 3/4] acpi: add clock_domain field to acpi_srat_cpu_affinity

2013-02-21 Thread liguang
according to ACPI SPEC v5.0, page 152, 5.2.16.1 Processor Local APIC/SAPIC Affinity Structure, the last member of it is clock_domain. Reviewed-by: Yasuaki Ishimatsu isimatu.yasu...@jp.fujitsu.com Acked-by: David Rientjes rient...@google.com Signed-off-by: liguang lig.f...@cn.fujitsu.com

[rebased][PATCH 1/4] acpi: move x86/mm/srat.c to x86/kernel/acpi/srat.c

2013-02-21 Thread liguang
srat table should present only on acpi domain, seems mm/ is not the right place for it. Reviewed-by: Yasuaki Ishimatsu isimatu.yasu...@jp.fujitsu.com Signed-off-by: liguang lig.f...@cn.fujitsu.com --- arch/x86/kernel/acpi/Makefile |1 + arch/x86/kernel/acpi/srat.c | 278

[rebased][PATCH 4/4] remove include asm/acpi.h in process_driver.c

2013-02-21 Thread liguang
process_driver.c include linux/acpi.h which already include asm/acpi.h, so remove it. Reviewed-by: Yasuaki Ishimatsu isimatu.yasu...@jp.fujitsu.com Acked-by: David Rientjes rient...@google.com Signed-off-by: liguang lig.f...@cn.fujitsu.com --- drivers/acpi/processor_driver.c |1 - 1 files

[rebased][PATCH 2/4] numa: avoid export acpi_numa variable

2013-02-21 Thread liguang
a fuction to get srat table enable/disable info. Signed-off-by: liguang lig.f...@cn.fujitsu.com --- arch/x86/include/asm/acpi.h |2 +- arch/x86/kernel/acpi/srat.c | 21 + arch/x86/mm/numa.c |2 +- arch/x86/xen/enlighten.c|2 +- 4 files changed, 16 insertions

[rebased][PATCH 0/4] acpi: do some changes for numa info

2013-02-21 Thread liguang
just do some trivial changes to make acpi's numa info operation more cleaner. ChangeLog v3-v4 1.fix srat_disabled function spotted by Yasuaki Ishimatsu isimatu.yasu...@jp.fujitsu.com v2-v3 1. rebase on linux-next 2. bring back lost Makefile changes spotted by David Rientjes

[PATCH] mips: remove unecessary __linux__ check

2013-02-19 Thread liguang
sgidefs.h has strict check for __linux__, it seems too harsh, as far as I test, 2 cross compiler for mips will not define it automatically, and exit build process with error "#error Use a Linux compiler or give up". remove it will not hurt, I think. Signed-off-by: liguang --- arch/mi

[PATCH] mips: remove unecessary __linux__ check

2013-02-19 Thread liguang
sgidefs.h has strict check for __linux__, it seems too harsh, as far as I test, 2 cross compiler for mips will not define it automatically, and exit build process with error #error Use a Linux compiler or give up. remove it will not hurt, I think. Signed-off-by: liguang lig.f...@cn.fujitsu.com

[PATCH v2] mm: break circular include from linux/mmzone.h

2013-02-17 Thread liguang
linux/mmzone.h included linux/memory_hotplug.h, and linux/memory_hotplug.h also included linux/mmzone.h, so there's a bad cirlular. these are quite mechanical changes by a simple script, I've tested for ARCH x86,arm,mips, may someone help to test more. Signed-off-by: liguang --- many thanks

[PATCH v2] mm: break circular include from linux/mmzone.h

2013-02-17 Thread liguang
linux/mmzone.h included linux/memory_hotplug.h, and linux/memory_hotplug.h also included linux/mmzone.h, so there's a bad cirlular. these are quite mechanical changes by a simple script, I've tested for ARCH x86,arm,mips, may someone help to test more. Signed-off-by: liguang lig.f

[PATCH v4 2/4] numa: avoid export acpi_numa variable

2013-02-14 Thread liguang
a fuction to get srat table enable/disable info. Signed-off-by: liguang --- arch/x86/include/asm/acpi.h |2 +- arch/x86/kernel/acpi/srat.c | 21 + arch/x86/mm/numa.c |2 +- arch/x86/xen/enlighten.c|2 +- 4 files changed, 16 insertions(+), 11 deletions

[PATCH v4 3/4] acpi: add clock_domain field to acpi_srat_cpu_affinity

2013-02-14 Thread liguang
according to ACPI SPEC v5.0, page 152, 5.2.16.1 Processor Local APIC/SAPIC Affinity Structure, the last member of it is clock_domain. Reviewed-by: Yasuaki Ishimatsu Acked-by: David Rientjes Signed-off-by: liguang --- include/acpi/actbl1.h |2 +- 1 files changed, 1 insertions(+), 1

[PATCH v4 0/4] acpi: do some changes for numa info

2013-02-14 Thread liguang
just do some trivial changes to make acpi's numa info operation more cleaner. ChangeLog v3->v4 1.fix srat_disabled function spotted by Yasuaki Ishimatsu v2->v3 1. rebase on linux-next 2. bring back lost Makefile changes spotted by David Rientjes spotted by Yasuaki Ishimatsu v1->v2 1.

[PATCH v4 1/4] acpi: move x86/mm/srat.c to x86/kernel/acpi/srat.c

2013-02-14 Thread liguang
srat table should present only on acpi domain, seems mm/ is not the right place for it. Reviewed-by: Yasuaki Ishimatsu Signed-off-by: liguang --- arch/x86/kernel/acpi/Makefile |1 + arch/x86/kernel/acpi/srat.c | 198 + arch/x86/mm/Makefile

[PATCH v4 4/4] remove include asm/acpi.h in process_driver.c

2013-02-14 Thread liguang
process_driver.c include linux/acpi.h which already include asm/acpi.h, so remove it. Reviewed-by: Yasuaki Ishimatsu Acked-by: David Rientjes Signed-off-by: liguang --- drivers/acpi/processor_driver.c |1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/drivers/acpi

[PATCH v4 4/4] remove include asm/acpi.h in process_driver.c

2013-02-14 Thread liguang
process_driver.c include linux/acpi.h which already include asm/acpi.h, so remove it. Reviewed-by: Yasuaki Ishimatsu isimatu.yasu...@jp.fujitsu.com Acked-by: David Rientjes rient...@google.com Signed-off-by: liguang lig.f...@cn.fujitsu.com --- drivers/acpi/processor_driver.c |1 - 1 files

[PATCH v4 0/4] acpi: do some changes for numa info

2013-02-14 Thread liguang
just do some trivial changes to make acpi's numa info operation more cleaner. ChangeLog v3-v4 1.fix srat_disabled function spotted by Yasuaki Ishimatsu isimatu.yasu...@jp.fujitsu.com v2-v3 1. rebase on linux-next 2. bring back lost Makefile changes spotted by David Rientjes

  1   2   >