[RFC PATCH v1 50/70] clocksource, metag_generic: _FROZEN Cleanup

2014-07-22 Thread Chen, Gong
Remove XXX_FROZEN state from clocksource/metag_generic.

Signed-off-by: Chen, Gong 
---
 drivers/clocksource/metag_generic.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/clocksource/metag_generic.c 
b/drivers/clocksource/metag_generic.c
index 9e4db41..eefa164 100644
--- a/drivers/clocksource/metag_generic.c
+++ b/drivers/clocksource/metag_generic.c
@@ -159,9 +159,8 @@ static int arch_timer_cpu_notify(struct notifier_block 
*self,
 {
int cpu = (long)hcpu;
 
-   switch (action) {
+   switch (action & ~CPU_TASKS_FROZEN) {
case CPU_STARTING:
-   case CPU_STARTING_FROZEN:
arch_timer_setup(cpu);
break;
}
-- 
2.0.0.rc2

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


[RFC PATCH v1 50/70] clocksource, metag_generic: _FROZEN Cleanup

2014-07-22 Thread Chen, Gong
Remove XXX_FROZEN state from clocksource/metag_generic.

Signed-off-by: Chen, Gong gong.c...@linux.intel.com
---
 drivers/clocksource/metag_generic.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/clocksource/metag_generic.c 
b/drivers/clocksource/metag_generic.c
index 9e4db41..eefa164 100644
--- a/drivers/clocksource/metag_generic.c
+++ b/drivers/clocksource/metag_generic.c
@@ -159,9 +159,8 @@ static int arch_timer_cpu_notify(struct notifier_block 
*self,
 {
int cpu = (long)hcpu;
 
-   switch (action) {
+   switch (action  ~CPU_TASKS_FROZEN) {
case CPU_STARTING:
-   case CPU_STARTING_FROZEN:
arch_timer_setup(cpu);
break;
}
-- 
2.0.0.rc2

--
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/