[PATCH 096/228] cpufreq: nforce2: don't initialize part of policy that is set by core too

2013-09-13 Thread Viresh Kumar
Many common initializations of struct policy are moved to core now and hence this driver doesn't need to do it. This patch removes such code. Most recent of those changes is to call ->get() in the core after calling ->init(). Signed-off-by: Viresh Kumar --- drivers/cpufreq/cpufreq-nforce2.c | 1

[PATCH 111/228] cpufreq: omap: don't initialize part of policy that is set by core too

2013-09-13 Thread Viresh Kumar
Many common initializations of struct policy are moved to core now and hence this driver doesn't need to do it. This patch removes such code. Most recent of those changes is to call ->get() in the core after calling ->init(). Cc: Santosh Shilimkar Signed-off-by: Viresh Kumar --- drivers/cpufre

[PATCH 119/228] cpufreq: s5pv210: don't initialize part of policy that is set by core too

2013-09-13 Thread Viresh Kumar
Many common initializations of struct policy are moved to core now and hence this driver doesn't need to do it. This patch removes such code. Most recent of those changes is to call ->get() in the core after calling ->init(). Cc: Kukjin Kim Signed-off-by: Viresh Kumar --- drivers/cpufreq/s5pv2

[PATCH 112/228] cpufreq: p4: don't initialize part of policy that is set by core too

2013-09-13 Thread Viresh Kumar
Many common initializations of struct policy are moved to core now and hence this driver doesn't need to do it. This patch removes such code. Most recent of those changes is to call ->get() in the core after calling ->init(). Cc: David S. Miller Signed-off-by: Viresh Kumar --- drivers/cpufreq/

[PATCH 100/228] cpufreq: e_powersaver: don't initialize part of policy that is set by core too

2013-09-13 Thread Viresh Kumar
Many common initializations of struct policy are moved to core now and hence this driver doesn't need to do it. This patch removes such code. Most recent of those changes is to call ->get() in the core after calling ->init(). Signed-off-by: Viresh Kumar --- drivers/cpufreq/e_powersaver.c | 1 -

[PATCH 098/228] cpufreq: davinci: don't initialize part of policy that is set by core too

2013-09-13 Thread Viresh Kumar
Many common initializations of struct policy are moved to core now and hence this driver doesn't need to do it. This patch removes such code. Most recent of those changes is to call ->get() in the core after calling ->init(). Cc: Sekhar Nori Signed-off-by: Viresh Kumar --- drivers/cpufreq/davi

[PATCH 095/228] cpufreq: cpu0: don't initialize part of policy that is set by core too

2013-09-13 Thread Viresh Kumar
Many common initializations of struct policy are moved to core now and hence this driver doesn't need to do it. This patch removes such code. Most recent of those changes is to call ->get() in the core after calling ->init(). Cc: Shawn Guo Signed-off-by: Viresh Kumar --- drivers/cpufreq/cpufre

[PATCH 123/228] cpufreq: spear: don't initialize part of policy that is set by core too

2013-09-13 Thread Viresh Kumar
Many common initializations of struct policy are moved to core now and hence this driver doesn't need to do it. This patch removes such code. Most recent of those changes is to call ->get() in the core after calling ->init(). Cc: spear-de...@list.st.com Signed-off-by: Viresh Kumar --- drivers/c

[PATCH 103/228] cpufreq: gx: don't initialize part of policy that is set by core too

2013-09-13 Thread Viresh Kumar
Many common initializations of struct policy are moved to core now and hence this driver doesn't need to do it. This patch removes such code. Most recent of those changes is to call ->get() in the core after calling ->init(). Signed-off-by: Viresh Kumar --- drivers/cpufreq/gx-suspmod.c | 5 +---

[PATCH 117/228] cpufreq: pxa: don't initialize part of policy that is set by core too

2013-09-13 Thread Viresh Kumar
Many common initializations of struct policy are moved to core now and hence this driver doesn't need to do it. This patch removes such code. Most recent of those changes is to call ->get() in the core after calling ->init(). Cc: Eric Miao Signed-off-by: Viresh Kumar --- drivers/cpufreq/pxa2xx

[PATCH 106/228] cpufreq: integrator: don't initialize part of policy that is set by core too

2013-09-13 Thread Viresh Kumar
Many common initializations of struct policy are moved to core now and hence this driver doesn't need to do it. This patch removes such code. Most recent of those changes is to call ->get() in the core after calling ->init(). Cc: Russell King Signed-off-by: Viresh Kumar --- drivers/cpufreq/int

[PATCH 108/228] cpufreq: longhaul: don't initialize part of policy that is set by core too

2013-09-13 Thread Viresh Kumar
Many common initializations of struct policy are moved to core now and hence this driver doesn't need to do it. This patch removes such code. Most recent of those changes is to call ->get() in the core after calling ->init(). Signed-off-by: Viresh Kumar --- drivers/cpufreq/longhaul.c | 1 - 1 f

[PATCH 101/228] cpufreq: elanfreq: don't initialize part of policy that is set by core too

2013-09-13 Thread Viresh Kumar
Many common initializations of struct policy are moved to core now and hence this driver doesn't need to do it. This patch removes such code. Most recent of those changes is to call ->get() in the core after calling ->init(). Signed-off-by: Viresh Kumar --- drivers/cpufreq/elanfreq.c | 1 - 1 f

[PATCH 102/228] cpufreq: exynos: don't initialize part of policy that is set by core too

2013-09-13 Thread Viresh Kumar
Many common initializations of struct policy are moved to core now and hence this driver doesn't need to do it. This patch removes such code. Most recent of those changes is to call ->get() in the core after calling ->init(). Acked-By: Amit Daniel Kachhap Acked-by: Kukjin Kim Signed-off-by: Vir

[PATCH 097/228] cpufreq: cris: don't initialize part of policy that is set by core too

2013-09-13 Thread Viresh Kumar
Many common initializations of struct policy are moved to core now and hence this driver doesn't need to do it. This patch removes such code. Most recent of those changes is to call ->get() in the core after calling ->init(). Cc: Jesper Nilsson Cc: Mikael Starvik Cc: linux-cris-ker...@axis.com

[PATCH 127/228] cpufreq: create cpufreq_generic_init() routine

2013-09-13 Thread Viresh Kumar
Many CPUFreq drivers for SMP system (where all cores share same clock lines), do similar stuff in their ->init() part. This patch creates a generic routine in cpufreq core which can be used by these so that we can remove some redundant code. Signed-off-by: Viresh Kumar --- drivers/cpufreq/Kconf

[PATCH 121/228] cpufreq: sc520_freq: don't initialize part of policy that is set by core too

2013-09-13 Thread Viresh Kumar
Many common initializations of struct policy are moved to core now and hence this driver doesn't need to do it. This patch removes such code. Most recent of those changes is to call ->get() in the core after calling ->init(). Signed-off-by: Viresh Kumar --- drivers/cpufreq/sc520_freq.c | 1 - 1

[PATCH 124/228] cpufreq: speedstep: don't initialize part of policy that is set by core too

2013-09-13 Thread Viresh Kumar
Many common initializations of struct policy are moved to core now and hence this driver doesn't need to do it. This patch removes such code. Most recent of those changes is to call ->get() in the core after calling ->init(). Cc: David S. Miller Signed-off-by: Viresh Kumar --- drivers/cpufreq/

[PATCH 116/228] cpufreq: ppc: don't initialize part of policy that is set by core too

2013-09-13 Thread Viresh Kumar
Many common initializations of struct policy are moved to core now and hence this driver doesn't need to do it. This patch removes such code. Most recent of those changes is to call ->get() in the core after calling ->init(). Signed-off-by: Viresh Kumar --- drivers/cpufreq/ppc-corenet-cpufreq.c

[PATCH 120/228] cpufreq: sa11x0: don't initialize part of policy that is set by core too

2013-09-13 Thread Viresh Kumar
Many common initializations of struct policy are moved to core now and hence this driver doesn't need to do it. This patch removes such code. Most recent of those changes is to call ->get() in the core after calling ->init(). Cc: Russell King Signed-off-by: Viresh Kumar --- drivers/cpufreq/sa1

[PATCH 092/228] cpufreq: arm_big_little: don't initialize part of policy that is set by core too

2013-09-13 Thread Viresh Kumar
Many common initializations of struct policy are moved to core now and hence this driver doesn't need to do it. This patch removes such code. Most recent of those changes is to call ->get() in the core after calling ->init(). Signed-off-by: Viresh Kumar --- drivers/cpufreq/arm_big_little.c | 2

[PATCH 089/228] cpufreq: tegra: Use generic cpufreq routines

2013-09-13 Thread Viresh Kumar
Most of the CPUFreq drivers do similar things in .exit() and .verify() routines and .attr. So its better if we have generic routines for them which can be used by cpufreq drivers then. This patch uses these generic routines for this driver. Cc: Stephen Warren Signed-off-by: Viresh Kumar --- dr

[PATCH 113/228] cpufreq: pcc: don't initialize part of policy that is set by core too

2013-09-13 Thread Viresh Kumar
Many common initializations of struct policy are moved to core now and hence this driver doesn't need to do it. This patch removes such code. Most recent of those changes is to call ->get() in the core after calling ->init(). Signed-off-by: Viresh Kumar --- drivers/cpufreq/pcc-cpufreq.c | 7 ---

[PATCH 088/228] cpufreq: speedstep: Use generic cpufreq routines

2013-09-13 Thread Viresh Kumar
Most of the CPUFreq drivers do similar things in .exit() and .verify() routines and .attr. So its better if we have generic routines for them which can be used by cpufreq drivers then. This patch uses these generic routines for this driver. Cc: David S. Miller Signed-off-by: Viresh Kumar --- d

[PATCH 109/228] cpufreq: loongson2: don't initialize part of policy that is set by core too

2013-09-13 Thread Viresh Kumar
Many common initializations of struct policy are moved to core now and hence this driver doesn't need to do it. This patch removes such code. Most recent of those changes is to call ->get() in the core after calling ->init(). Cc: John Crispin Signed-off-by: Viresh Kumar --- drivers/cpufreq/loo

[PATCH 054/228] cpufreq: sparc: call cpufreq_frequency_table_put_attr()

2013-09-13 Thread Viresh Kumar
Drivers which have an exit path must call cpufreq_frequency_table_put_attr() if they have called cpufreq_frequency_table_get_attr() in their init path. This driver was missing this part and is fixed with this patch. Cc: David S. Miller Cc: sparcli...@vger.kernel.org Signed-off-by: Viresh Kumar

[PATCH 077/228] cpufreq: powernow: Use generic cpufreq routines

2013-09-13 Thread Viresh Kumar
Most of the CPUFreq drivers do similar things in .exit() and .verify() routines and .attr. So its better if we have generic routines for them which can be used by cpufreq drivers then. This patch uses these generic routines for this driver. Signed-off-by: Viresh Kumar --- drivers/cpufreq/powern

[PATCH 079/228] cpufreq: ppc_cbe: Use generic cpufreq routines

2013-09-13 Thread Viresh Kumar
Most of the CPUFreq drivers do similar things in .exit() and .verify() routines and .attr. So its better if we have generic routines for them which can be used by cpufreq drivers then. This patch uses these generic routines for this driver. Signed-off-by: Viresh Kumar --- drivers/cpufreq/ppc_cb

[PATCH 064/228] cpufreq: e_powersaver: Use generic cpufreq routines

2013-09-13 Thread Viresh Kumar
Most of the CPUFreq drivers do similar things in .exit() and .verify() routines and .attr. So its better if we have generic routines for them which can be used by cpufreq drivers then. This patch uses these generic routines for this driver. Signed-off-by: Viresh Kumar --- drivers/cpufreq/e_powe

[PATCH 083/228] cpufreq: sa11x0: Use generic cpufreq routines

2013-09-13 Thread Viresh Kumar
Most of the CPUFreq drivers do similar things in .exit() and .verify() routines and .attr. So its better if we have generic routines for them which can be used by cpufreq drivers then. This patch uses these generic routines for this driver. Signed-off-by: Viresh Kumar --- arch/arm/mach-sa1100/g

[PATCH 072/228] cpufreq: maple: Use generic cpufreq routines

2013-09-13 Thread Viresh Kumar
Most of the CPUFreq drivers do similar things in .exit() and .verify() routines and .attr. So its better if we have generic routines for them which can be used by cpufreq drivers then. This patch uses these generic routines for this driver. Cc: Dmitry Eremin-Solenikov Signed-off-by: Viresh Kumar

[PATCH 070/228] cpufreq: longhaul: Use generic cpufreq routines

2013-09-13 Thread Viresh Kumar
Most of the CPUFreq drivers do similar things in .exit() and .verify() routines and .attr. So its better if we have generic routines for them which can be used by cpufreq drivers then. This patch uses these generic routines for this driver. Signed-off-by: Viresh Kumar --- drivers/cpufreq/longha

[PATCH 081/228] cpufreq: s3cx4xx: Use generic cpufreq routines

2013-09-13 Thread Viresh Kumar
Most of the CPUFreq drivers do similar things in .exit() and .verify() routines and .attr. So its better if we have generic routines for them which can be used by cpufreq drivers then. This patch uses these generic routines for this driver. Cc: Kukjin Kim Signed-off-by: Viresh Kumar --- driver

[PATCH 080/228] cpufreq: pxa: Use generic cpufreq routines

2013-09-13 Thread Viresh Kumar
Most of the CPUFreq drivers do similar things in .exit() and .verify() routines and .attr. So its better if we have generic routines for them which can be used by cpufreq drivers then. This patch uses these generic routines for this driver. Cc: Eric Miao Signed-off-by: Viresh Kumar --- drivers

[PATCH 075/228] cpufreq: pasemi: Use generic cpufreq routines

2013-09-13 Thread Viresh Kumar
Most of the CPUFreq drivers do similar things in .exit() and .verify() routines and .attr. So its better if we have generic routines for them which can be used by cpufreq drivers then. This patch uses these generic routines for this driver. Signed-off-by: Viresh Kumar --- drivers/cpufreq/pasemi

[PATCH 078/228] cpufreq: ppc-corenet: Use generic cpufreq routines

2013-09-13 Thread Viresh Kumar
Most of the CPUFreq drivers do similar things in .exit() and .verify() routines and .attr. So its better if we have generic routines for them which can be used by cpufreq drivers then. This patch uses these generic routines for this driver. Signed-off-by: Viresh Kumar --- drivers/cpufreq/ppc-co

[PATCH 082/228] cpufreq: s5pv210: Use generic cpufreq routines

2013-09-13 Thread Viresh Kumar
Most of the CPUFreq drivers do similar things in .exit() and .verify() routines and .attr. So its better if we have generic routines for them which can be used by cpufreq drivers then. This patch uses these generic routines for this driver. Cc: Kukjin Kim Signed-off-by: Viresh Kumar --- driver

[PATCH 057/228] cpufreq: arm_big_little: Use generic cpufreq routines

2013-09-13 Thread Viresh Kumar
Most of the CPUFreq drivers do similar things in .exit() and .verify() routines and .attr. So its better if we have generic routines for them which can be used by cpufreq drivers then. This patch uses these generic routines for this driver. Signed-off-by: Viresh Kumar --- drivers/cpufreq/arm_bi

[PATCH 087/228] cpufreq: spear: Use generic cpufreq routines

2013-09-13 Thread Viresh Kumar
Most of the CPUFreq drivers do similar things in .exit() and .verify() routines and .attr. So its better if we have generic routines for them which can be used by cpufreq drivers then. This patch uses these generic routines for this driver. Cc: spear-de...@list.st.com Signed-off-by: Viresh Kumar

[PATCH 066/228] cpufreq: exynos: Use generic cpufreq routines

2013-09-13 Thread Viresh Kumar
Most of the CPUFreq drivers do similar things in .exit() and .verify() routines and .attr. So its better if we have generic routines for them which can be used by cpufreq drivers then. This patch uses these generic routines for this driver. Acked-By: Amit Daniel Kachhap Acked-by: Kukjin Kim Sig

[PATCH 062/228] cpufreq: davinci: Use generic cpufreq routines

2013-09-13 Thread Viresh Kumar
Most of the CPUFreq drivers do similar things in .exit() and .verify() routines and .attr. So its better if we have generic routines for them which can be used by cpufreq drivers then. This patch uses these generic routines for this driver. Cc: Sekhar Nori Signed-off-by: Viresh Kumar --- drive

Re: [PATCH 3/4] Add physical count arch timer support for clocksource in ARMv7.

2013-09-13 Thread cinifr
> I urge you to read the ARM ARM, and specifically the section dedicated > to trapping access to CP15 operations. If you do, you'll quickly notice > that you *cannot* trap accesses to the timer subsystem. > I read it again. The ARMv7 manual said "Is accessible from Non-secure PL1 modes only when CN

[PATCH 084/228] cpufreq: sc520: Use generic cpufreq routines

2013-09-13 Thread Viresh Kumar
Most of the CPUFreq drivers do similar things in .exit() and .verify() routines and .attr. So its better if we have generic routines for them which can be used by cpufreq drivers then. This patch uses these generic routines for this driver. Signed-off-by: Viresh Kumar --- drivers/cpufreq/sc520_

[PATCH 060/228] cpufreq: cpu0: Use generic cpufreq routines

2013-09-13 Thread Viresh Kumar
Most of the CPUFreq drivers do similar things in .exit() and .verify() routines and .attr. So its better if we have generic routines for them which can be used by cpufreq drivers then. This patch uses these generic routines for this driver. Acked-by: Shawn Guo Signed-off-by: Viresh Kumar --- d

[PATCH 086/228] cpufreq: sparc: Use generic cpufreq routines

2013-09-13 Thread Viresh Kumar
Most of the CPUFreq drivers do similar things in .exit() and .verify() routines and .attr. So its better if we have generic routines for them which can be used by cpufreq drivers then. This patch uses these generic routines for this driver. Cc: David S. Miller Cc: sparcli...@vger.kernel.org Sign

[PATCH 067/228] cpufreq: ia64-acpi: Use generic cpufreq routines

2013-09-13 Thread Viresh Kumar
Most of the CPUFreq drivers do similar things in .exit() and .verify() routines and .attr. So its better if we have generic routines for them which can be used by cpufreq drivers then. This patch uses these generic routines for this driver. Cc: Tony Luck Signed-off-by: Viresh Kumar --- drivers

[PATCH 063/228] cpufreq: dbx500: Use generic cpufreq routines

2013-09-13 Thread Viresh Kumar
Most of the CPUFreq drivers do similar things in .exit() and .verify() routines and .attr. So its better if we have generic routines for them which can be used by cpufreq drivers then. This patch uses these generic routines for this driver. Cc: Linus Walleij Signed-off-by: Viresh Kumar --- dri

[PATCH 047/228] cpufreq: at32ap: add frequency table

2013-09-13 Thread Viresh Kumar
From: Hans-Christian Egtvedt This patch adds a dynamically calculated frequency table to the at32ap driver. In short the architecture can scale in power of two between a maximum and minimum frequency. Min, max, and the steps in between are added to the table. Signed-off-by: Hans-Christian Egtved

[PATCH 046/228] cpufreq: tegra: fix implementation of ->exit()

2013-09-13 Thread Viresh Kumar
->exit() of drivers should call cpufreq_frequency_table_put_attr() if they have called cpufreq_frequency_table_get_attr() earlier in init() and they aren't required to validate their cpufreq table in exit by calling cpufreq_frequency_table_cpuinfo(). Tegra's driver wasn't calling cpufreq_frequency_

[PATCH 053/228] cpufreq: pxa: call cpufreq_frequency_table_put_attr()

2013-09-13 Thread Viresh Kumar
Drivers which have an exit path must call cpufreq_frequency_table_put_attr() if they have called cpufreq_frequency_table_get_attr() in their init path. This driver was missing this part and is fixed with this patch. Cc: Eric Miao Signed-off-by: Viresh Kumar --- drivers/cpufreq/pxa2xx-cpufreq.c

[PATCH 043/228] cpufreq: spear: use cpufreq_table_validate_and_show()

2013-09-13 Thread Viresh Kumar
Lets use cpufreq_table_validate_and_show() instead of calling cpufreq_frequency_table_cpuinfo() and cpufreq_frequency_table_get_attr(). Cc: spear-de...@list.st.com Signed-off-by: Viresh Kumar --- drivers/cpufreq/spear-cpufreq.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --g

[PATCH 042/228] cpufreq: sparc: use cpufreq_table_validate_and_show()

2013-09-13 Thread Viresh Kumar
Lets use cpufreq_table_validate_and_show() instead of calling cpufreq_frequency_table_cpuinfo() and cpufreq_frequency_table_get_attr(). Cc: David S. Miller Cc: sparcli...@vger.kernel.org Signed-off-by: Viresh Kumar --- drivers/cpufreq/sparc-us2e-cpufreq.c | 6 +- drivers/cpufreq/sparc-us3-c

[PATCH 052/228] cpufreq: omap: call cpufreq_frequency_table_put_attr()

2013-09-13 Thread Viresh Kumar
Drivers which have an exit path must call cpufreq_frequency_table_put_attr() if they have called cpufreq_frequency_table_get_attr() in their init path. This driver was missing this part and is fixed with this patch. Cc: Santosh Shilimkar Signed-off-by: Viresh Kumar --- drivers/cpufreq/omap-cpu

[PATCH 048/228] cpufreq: arm_big_little: call cpufreq_frequency_table_put_attr()

2013-09-13 Thread Viresh Kumar
Drivers which have an exit path must call cpufreq_frequency_table_put_attr() if they have called cpufreq_frequency_table_get_attr() in their init path. This driver was missing this part and is fixed with this patch. Signed-off-by: Viresh Kumar --- drivers/cpufreq/arm_big_little.c | 1 + 1 file

[PATCH 049/228] cpufreq: blackfin: call cpufreq_frequency_table_put_attr()

2013-09-13 Thread Viresh Kumar
Drivers which have an exit path must call cpufreq_frequency_table_put_attr() if they have called cpufreq_frequency_table_get_attr() in their init path. This driver was missing this part and is fixed with this patch. Cc: Steven Miao Signed-off-by: Viresh Kumar --- drivers/cpufreq/blackfin-cpufr

[PATCH 031/228] cpufreq: pasemi: use cpufreq_table_validate_and_show()

2013-09-13 Thread Viresh Kumar
Lets use cpufreq_table_validate_and_show() instead of calling cpufreq_frequency_table_cpuinfo() and cpufreq_frequency_table_get_attr(). Signed-off-by: Viresh Kumar --- drivers/cpufreq/pasemi-cpufreq.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/cpufreq/pasemi-c

[PATCH 044/228] cpufreq: speedstep: use cpufreq_table_validate_and_show()

2013-09-13 Thread Viresh Kumar
Lets use cpufreq_table_validate_and_show() instead of calling cpufreq_frequency_table_cpuinfo() and cpufreq_frequency_table_get_attr(). Cc: David S. Miller Signed-off-by: Viresh Kumar --- drivers/cpufreq/speedstep-centrino.c | 10 +- drivers/cpufreq/speedstep-ich.c | 9 +

[PATCH 051/228] cpufreq: loongson2: call cpufreq_frequency_table_put_attr()

2013-09-13 Thread Viresh Kumar
Drivers which have an exit path must call cpufreq_frequency_table_put_attr() if they have called cpufreq_frequency_table_get_attr() in their init path. This driver was missing this part and is fixed with this patch. Cc: John Crispin Signed-off-by: Viresh Kumar --- drivers/cpufreq/loongson2_cpu

[PATCH 037/228] cpufreq: s5pv210: use cpufreq_table_validate_and_show()

2013-09-13 Thread Viresh Kumar
Lets use cpufreq_table_validate_and_show() instead of calling cpufreq_frequency_table_cpuinfo() and cpufreq_frequency_table_get_attr(). Cc: Kukjin Kim Signed-off-by: Viresh Kumar --- drivers/cpufreq/s5pv210-cpufreq.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers

[PATCH 045/228] cpufreq: tegra: use cpufreq_table_validate_and_show()

2013-09-13 Thread Viresh Kumar
Lets use cpufreq_table_validate_and_show() instead of calling cpufreq_frequency_table_cpuinfo() and cpufreq_frequency_table_get_attr(). Acked-by: Stephen Warren Signed-off-by: Viresh Kumar --- drivers/cpufreq/tegra-cpufreq.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/

[PATCH 035/228] cpufreq: pxa: use cpufreq_table_validate_and_show()

2013-09-13 Thread Viresh Kumar
Lets use cpufreq_table_validate_and_show() instead of calling cpufreq_frequency_table_cpuinfo() and cpufreq_frequency_table_get_attr(). Cc: Eric Miao Signed-off-by: Viresh Kumar --- drivers/cpufreq/pxa2xx-cpufreq.c | 6 ++ drivers/cpufreq/pxa3xx-cpufreq.c | 8 ++-- 2 files changed, 4 in

[PATCH 034/228] cpufreq: ppc: use cpufreq_table_validate_and_show()

2013-09-13 Thread Viresh Kumar
Lets use cpufreq_table_validate_and_show() instead of calling cpufreq_frequency_table_cpuinfo() and cpufreq_frequency_table_get_attr(). Signed-off-by: Viresh Kumar --- drivers/cpufreq/ppc-corenet-cpufreq.c | 3 +-- drivers/cpufreq/ppc_cbe_cpufreq.c | 4 +--- 2 files changed, 2 insertions(+),

[PATCH 040/228] cpufreq: sc520: use cpufreq_table_validate_and_show()

2013-09-13 Thread Viresh Kumar
Lets use cpufreq_table_validate_and_show() instead of calling cpufreq_frequency_table_cpuinfo() and cpufreq_frequency_table_get_attr(). Signed-off-by: Viresh Kumar --- drivers/cpufreq/sc520_freq.c | 9 + 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/drivers/cpufreq/sc520_f

[PATCH 022/228] cpufreq: exynos: use cpufreq_table_validate_and_show()

2013-09-13 Thread Viresh Kumar
Lets use cpufreq_table_validate_and_show() instead of calling cpufreq_frequency_table_cpuinfo() and cpufreq_frequency_table_get_attr(). Cc: Kukjin Kim Signed-off-by: Viresh Kumar --- drivers/cpufreq/exynos-cpufreq.c | 4 +--- drivers/cpufreq/exynos5440-cpufreq.c | 4 +--- 2 files changed, 2

[PATCH 027/228] cpufreq: loongson2: use cpufreq_table_validate_and_show()

2013-09-13 Thread Viresh Kumar
Lets use cpufreq_table_validate_and_show() instead of calling cpufreq_frequency_table_cpuinfo() and cpufreq_frequency_table_get_attr(). Cc: John Crispin Signed-off-by: Viresh Kumar --- drivers/cpufreq/loongson2_cpufreq.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/dr

[PATCH 018/228] cpufreq: davinci: use cpufreq_table_validate_and_show()

2013-09-13 Thread Viresh Kumar
Lets use cpufreq_table_validate_and_show() instead of calling cpufreq_frequency_table_cpuinfo() and cpufreq_frequency_table_get_attr(). Cc: Sekhar Nori Signed-off-by: Viresh Kumar --- drivers/cpufreq/davinci-cpufreq.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/dri

[PATCH 026/228] cpufreq: longhaul: use cpufreq_table_validate_and_show()

2013-09-13 Thread Viresh Kumar
Lets use cpufreq_table_validate_and_show() instead of calling cpufreq_frequency_table_cpuinfo() and cpufreq_frequency_table_get_attr(). Signed-off-by: Viresh Kumar --- drivers/cpufreq/longhaul.c | 8 +--- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/drivers/cpufreq/longhaul.c

[PATCH 021/228] cpufreq: elanfreq: use cpufreq_table_validate_and_show()

2013-09-13 Thread Viresh Kumar
Lets use cpufreq_table_validate_and_show() instead of calling cpufreq_frequency_table_cpuinfo() and cpufreq_frequency_table_get_attr(). Signed-off-by: Viresh Kumar --- drivers/cpufreq/elanfreq.c | 8 +--- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/drivers/cpufreq/elanfreq.c

[PATCH 023/228] cpufreq: ia64-acpi: use cpufreq_table_validate_and_show()

2013-09-13 Thread Viresh Kumar
Lets use cpufreq_table_validate_and_show() instead of calling cpufreq_frequency_table_cpuinfo() and cpufreq_frequency_table_get_attr(). Cc: Tony Luck Signed-off-by: Viresh Kumar --- drivers/cpufreq/ia64-acpi-cpufreq.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/driver

[PATCH 025/228] cpufreq: kirkwood: use cpufreq_table_validate_and_show()

2013-09-13 Thread Viresh Kumar
Lets use cpufreq_table_validate_and_show() instead of calling cpufreq_frequency_table_cpuinfo() and cpufreq_frequency_table_get_attr(). Reviewed-by: Andrew Lunn Signed-off-by: Viresh Kumar --- drivers/cpufreq/kirkwood-cpufreq.c | 10 +- 1 file changed, 1 insertion(+), 9 deletions(-) di

[PATCH 024/228] cpufreq: imx6q: use cpufreq_table_validate_and_show()

2013-09-13 Thread Viresh Kumar
Lets use cpufreq_table_validate_and_show() instead of calling cpufreq_frequency_table_cpuinfo() and cpufreq_frequency_table_get_attr(). Cc: Shawn Guo Signed-off-by: Viresh Kumar --- drivers/cpufreq/imx6q-cpufreq.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/cpu

[PATCH 019/228] cpufreq: dbx500: use cpufreq_table_validate_and_show()

2013-09-13 Thread Viresh Kumar
Lets use cpufreq_table_validate_and_show() instead of calling cpufreq_frequency_table_cpuinfo() and cpufreq_frequency_table_get_attr(). Acked-by: Linus Walleij Signed-off-by: Viresh Kumar --- drivers/cpufreq/dbx500-cpufreq.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --gi

[PATCH 012/228] cpufreq: sparc: call cpufreq_frequency_table_get_attr()

2013-09-13 Thread Viresh Kumar
This exposes frequency table of driver to cpufreq core and is required for core to guess what the index for a target frequency is, when it calls cpufreq_frequency_table_target(). And so this driver needs to expose it. Cc: David S. Miller Cc: sparcli...@vger.kernel.org Signed-off-by: Viresh Kumar

[PATCH 013/228] cpufreq: acpi-cpufreq: use cpufreq_table_validate_and_show()

2013-09-13 Thread Viresh Kumar
Lets use cpufreq_table_validate_and_show() instead of calling cpufreq_frequency_table_cpuinfo() and cpufreq_frequency_table_get_attr(). Signed-off-by: Viresh Kumar --- drivers/cpufreq/acpi-cpufreq.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/cpufreq/acpi-cpufr

[PATCH 010/228] cpufreq: pxa: call cpufreq_frequency_table_get_attr()

2013-09-13 Thread Viresh Kumar
This exposes frequency table of driver to cpufreq core and is required for core to guess what the index for a target frequency is, when it calls cpufreq_frequency_table_target(). And so this driver needs to expose it. Cc: Eric Miao Signed-off-by: Viresh Kumar --- drivers/cpufreq/pxa2xx-cpufreq.

[PATCH 015/228] cpufreq: blackfin: use cpufreq_table_validate_and_show()

2013-09-13 Thread Viresh Kumar
Lets use cpufreq_table_validate_and_show() instead of calling cpufreq_frequency_table_cpuinfo() and cpufreq_frequency_table_get_attr(). Cc: Steven Miao Signed-off-by: Viresh Kumar --- drivers/cpufreq/blackfin-cpufreq.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/driver

[PATCH 014/228] cpufreq: arm_big_little: use cpufreq_table_validate_and_show()

2013-09-13 Thread Viresh Kumar
Lets use cpufreq_table_validate_and_show() instead of calling cpufreq_frequency_table_cpuinfo() and cpufreq_frequency_table_get_attr(). Signed-off-by: Viresh Kumar --- drivers/cpufreq/arm_big_little.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/cpufreq/arm_big_

[PATCH 000/228] CPUFreq: cleanup stuff for 3.13

2013-09-13 Thread Viresh Kumar
This is my biggest patchset ever and it might not happen again in my entire career. I hope I haven't screwed up here :) CPUFreq cleanup patches are ready to hit linux-next (I hope it doesn't turn out into horror stories, where it broke all possible architectures where Linux runs :)) Most of these

[PATCH 009/228] cpufreq: Add new helper cpufreq_table_validate_and_show()

2013-09-13 Thread Viresh Kumar
Almost every cpufreq driver is required to validate its frequency table with: cpufreq_frequency_table_cpuinfo() and then expose it to cpufreq core with: cpufreq_frequency_table_get_attr(). This patch creates another helper routine cpufreq_table_validate_and_show() that will do both these steps in

[PATCH 002/228] cpufreq: don't break string in print statements

2013-09-13 Thread Viresh Kumar
As a rule its better not to break string (quoted inside "") in a print statement even if it crosses 80 column boundary as that may introduce unwanted bugs and so this patch rewrites one of the print statements.. Reviewed-by: Srivatsa S. Bhat Signed-off-by: Viresh Kumar --- drivers/cpufreq/cpufr

[PATCH 006/228] cpufreq: rewrite cpufreq_driver->flags using shift operator

2013-09-13 Thread Viresh Kumar
Currently cpufreq_driver's flags are defined directly using 0x1, 0x2, 0x4, 0x8, etc.. As the list grows it doesn't stays much readable.. Lets use bitwise shift operator << to generate these numbers for respective positions. Signed-off-by: Viresh Kumar --- include/linux/cpufreq.h | 17 +-

[PATCH 003/228] cpufreq: remove __cpufreq_remove_dev()

2013-09-13 Thread Viresh Kumar
Nobody except cpufreq_remove_dev() is calling __cpufreq_remove_dev() and so we don't need separate routines here. Lets merge code from __cpufreq_remove_dev() to cpufreq_remove_dev() and get rid of __cpufreq_remove_dev(). Reviewed-by: Srivatsa S. Bhat Signed-off-by: Viresh Kumar --- drivers/cpuf

[PATCH 005/228] cpufreq: rename __cpufreq_set_policy() as cpufreq_set_policy()

2013-09-13 Thread Viresh Kumar
Earlier there used to be two functions named __cpufreq_set_policy() and cpufreq_set_policy(), but now we only have a single routine lets name it cpufreq_set_policy() instead of __cpufreq_set_policy(). This also removes some invalid comments or fixes some incorrect comments. Signed-off-by: Viresh

[PATCH 007/228] cpufreq: use cpufreq_driver->flags to mark CPUFREQ_HAVE_GOVERNOR_PER_POLICY

2013-09-13 Thread Viresh Kumar
Lets use cpufreq_driver->flags to mark CPUFREQ_HAVE_GOVERNOR_PER_POLICY instead of a separate field within cpufreq_driver. This will save some bytes for us. Signed-off-by: Viresh Kumar --- drivers/cpufreq/arm_big_little.c | 4 ++-- drivers/cpufreq/cpufreq.c | 2 +- drivers/cpufreq/c

[PATCH 004/228] cpufreq: Optimize cpufreq_frequency_table_verify()

2013-09-13 Thread Viresh Kumar
cpufreq_frequency_table_verify() is a bit rewritten here to make it more logical and optimal. - merge multiple lines for variable declarations together. - quit early if any frequency between min/max is found. - don't call cpufreq_verify_within_limits() in case any valid freq is found as it is of

[PATCH 008/228] cpufreq: add new routine cpufreq_verify_within_cpu_limits()

2013-09-13 Thread Viresh Kumar
Most of the users of cpufreq_verify_within_limits() calls it for limiting with min/max from policy->cpuinfo. We can make that code simple by introducing another routine which will do this for them automatically. This patch adds another routine cpufreq_verify_within_cpu_limits() and updates others

[PATCH 001/228] cpufreq: Remove extra blank line

2013-09-13 Thread Viresh Kumar
We don't need a blank line just at start of a block, lets remove it. Signed-off-by: Viresh Kumar --- drivers/cpufreq/cpufreq.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/cpufreq/cpufreq.c b/drivers/cpufreq/cpufreq.c index 005eb73..3d5e6d6 100644 --- a/drivers/cpufreq/cpufreq.c ++

[PATCH] [PATCH] clocksource: tcb: fix min_delta calculation

2013-09-13 Thread Marc Kleine-Budde
The commit 77cc982 clocksource: use clockevents_config_and_register() where possible switches from manually calculating min_delta_ns (and others) and clockevents_register_device() to automatic calculation via clockevents_config_and_register(). During this conversation the "+ 1" in min_de

[PATCH 1/2] cpufreq: Create cpufreq_transition_complete()

2013-09-13 Thread Viresh Kumar
Following patch "cpufreq: make sure frequency transitions are serialized" guarantees that we don't have any races while changing cpu frequency or sending notifications. It handled a special case with CPUFREQ_ASYNC_NOTIFICATION flag for drivers that don't complete their freq change from ->target() a

[PATCH 0/2] cpufreq: fix transition_ongoing count for powernow-k8

2013-09-13 Thread Viresh Kumar
This has been running in my mind since few days... That we have fixed cpufreq core and all other drivers for transition serialization but what about powernow-k8? It is somewhat special (even more than exynos5440).. It queues a work from ->target() and may or maynot send notifications at all.. Fina

[PATCH 2/2] cpufreq: powernow-k8: mark freq transition complete on error cases

2013-09-13 Thread Viresh Kumar
Following patch "cpufreq: make sure frequency transitions are serialized" guarantees that we don't have any races while changing cpu frequency or sending notifications. It handled a special case with CPUFREQ_ASYNC_NOTIFICATION flag for drivers that don't complete their freq change from ->target() a

[PATCH 3/4] scsi: hyper-v storage -- mark as VPD capable at SPC-2

2013-09-13 Thread Andy Whitcroft
BugLink: http://bugs.launchpad.net/bugs/1223499 Signed-off-by: Andy Whitcroft --- drivers/scsi/storvsc_drv.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/scsi/storvsc_drv.c b/drivers/scsi/storvsc_drv.c index 1a28f56..14ba8fd 100644 --- a/drivers/scsi/storvsc_drv.c +++ b/drivers/scs

[PATCH 4/4] scsi: hyper-v storage -- mark as preferring READ CAPACITY (16) at SPC-2

2013-09-13 Thread Andy Whitcroft
BugLink: http://bugs.launchpad.net/bugs/1223499 Signed-off-by: Andy Whitcroft --- drivers/scsi/storvsc_drv.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/scsi/storvsc_drv.c b/drivers/scsi/storvsc_drv.c index 14ba8fd..25e7dd5 100644 --- a/drivers/scsi/storvsc_drv.c +++ b/drivers/scs

[PATCH 0/4] Hyper-V TRIM support

2013-09-13 Thread Andy Whitcroft
tl;dr -- enable TRIM support for Hyper-V emulated disks. The Hyper-V hypervisor can support TRIM for its devices, advertising this via the appropriate VPD pages. However the emulated disks only claim to be SPC-2 devices. According to the specs VPD pages (in general) did exist at SPC-2 but the sp

[PATCH 2/4] scsi: add scsi device flag to request READ CAPACITY (16) be preferred

2013-09-13 Thread Andy Whitcroft
BugLink: http://bugs.launchpad.net/bugs/1223499 Signed-off-by: Andy Whitcroft --- drivers/scsi/sd.c | 2 ++ include/scsi/scsi_device.h | 1 + 2 files changed, 3 insertions(+) diff --git a/drivers/scsi/sd.c b/drivers/scsi/sd.c index 5a8a04d..eba4d6c 100644 --- a/drivers/scsi/sd.c +++ b/d

[PATCH 1/4] scsi: add scsi device flag to request VPD pages be used at SPC-2

2013-09-13 Thread Andy Whitcroft
Under Hyper-V the disk devices support the trim extensions advertising them via the appropriate VPD pages, it however reports itself as SPC-2 only. The relevant pages were added in SPC-3 and later, so we do not even attempt to see if they are present; the VPD page 0 lists which other pages are pres

Re: [patch 3/4] skd: use strncpy() as a cleanup

2013-09-13 Thread Dan Carpenter
On Fri, Sep 13, 2013 at 02:03:23PM +0200, Geert Uytterhoeven wrote: > On Fri, Sep 13, 2013 at 10:05 AM, Dan Carpenter > > + strncpy(inq.driver_version, DRV_VER_COMPL, > > + min(sizeof(inq.driver_version), strlen(DRV_VER_COMPL))); > > This does the exact same thing as memcpy(),

[patch 3/4 v2] skd: use memcpy() as a cleanup

2013-09-13 Thread Dan Carpenter
The code here is copying the version to inq.driver_version but we don't want it to be NUL terminated. Instead we pad the rest of the array with spaces. It's fewer lines to use memcpy() and maybe a little nicer. Signed-off-by: Dan Carpenter --- v2: use memcpy() instead of strncpy() diff --git a

Re: Current git kernel reboots early durning boot

2013-09-13 Thread Markus Trippelsdorf
On 2013.09.09 at 13:18 +0200, Markus Trippelsdorf wrote: > I've hit an odd issue on the current git tree. When I build a kernel > with my attached config and a very simple local patch (also attached), I > get a resulting kernel that just reboots my machine very early during > boot. When I try to bo

Re: [PATCH 0/4] perf tools: New comm infrastructure

2013-09-13 Thread Frederic Weisbecker
On Fri, Sep 13, 2013 at 03:32:34PM +0900, Namhyung Kim wrote: > Hi Frederic, > > On Thu, 12 Sep 2013 22:29:39 +0200, Frederic Weisbecker wrote: > > The way we handle hists sorted by comm is to first gather them by tid then > > in the end merge/collapse hists that end up with the same comm. > > > >

<    1   2   3   4   5   6   7   8   >