mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v2] tick/broadcast: Remove redundant code in tick_check_new_device()
@ 2017-11-14 14:36 Zhenzhong Duan
  0 siblings, 0 replies; 3+ messages in thread
From: Zhenzhong Duan @ 2017-11-14 14:36 UTC (permalink / raw)
  To: mingo, tglx, fweisbec; +Cc: srinivas.eeda, joe.jin, linux-kernel

There is no way a timer used as broadcast clockevent device is also used as
percpu tick clockevent device currently.

-v2: remove meaningless description suggested by tglx

Signed-off-by: Zhenzhong Duan <zhenzhong.duan@oracle.com>
---
 kernel/time/tick-common.c |    7 +------
 1 files changed, 1 insertions(+), 6 deletions(-)

diff --git a/kernel/time/tick-common.c b/kernel/time/tick-common.c
index 49edc1c..9bcc866 100644
--- a/kernel/time/tick-common.c
+++ b/kernel/time/tick-common.c
@@ -320,13 +320,8 @@ void tick_check_new_device(struct clock_event_device *newdev)
 
 	/*
 	 * Replace the eventually existing device by the new
-	 * device. If the current device is the broadcast device, do
-	 * not give it back to the clockevents layer !
+	 * device.
 	 */
-	if (tick_is_broadcast_device(curdev)) {
-		clockevents_shutdown(curdev);
-		curdev = NULL;
-	}
 	clockevents_exchange_device(curdev, newdev);
 	tick_setup_device(td, newdev, cpu, cpumask_of(cpu));
 	if (newdev->features & CLOCK_EVT_FEAT_ONESHOT)
-- 
1.7.3

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH v2] tick/broadcast: Remove redundant code in tick_check_new_device()
@ 2018-12-04  9:21 Zhenzhong Duan
  0 siblings, 0 replies; 3+ messages in thread
From: Zhenzhong Duan @ 2018-12-04  9:21 UTC (permalink / raw)
  To: tglx, mingo, fweisbec; +Cc: srinivas.eeda, joe.jin, linux-kernel

Hi Maintainers,

When cleanup my mailbox for free space, I see this patch is missed in upstream.
Checked code again, I think that code indeed could be removed safely.

So could anyone Ack or NAK it? Thanks very much.

Regards
Zhenzhong

----- zhenzhong.duan@oracle.com wrote:

> There is no way a timer used as broadcast clockevent device is also
> used as
> percpu tick clockevent device currently.
> 
> -v2: remove meaningless description suggested by tglx
> 
> Signed-off-by: Zhenzhong Duan <zhenzhong.duan@oracle.com>
> ---
>  kernel/time/tick-common.c |    7 +------
>  1 files changed, 1 insertions(+), 6 deletions(-)
> 
> diff --git a/kernel/time/tick-common.c b/kernel/time/tick-common.c
> index 49edc1c..9bcc866 100644
> --- a/kernel/time/tick-common.c
> +++ b/kernel/time/tick-common.c
> @@ -320,13 +320,8 @@ void tick_check_new_device(struct
> clock_event_device *newdev)
>  
>  	/*
>  	 * Replace the eventually existing device by the new
> -	 * device. If the current device is the broadcast device, do
> -	 * not give it back to the clockevents layer !
> +	 * device.
>  	 */
> -	if (tick_is_broadcast_device(curdev)) {
> -		clockevents_shutdown(curdev);
> -		curdev = NULL;
> -	}
>  	clockevents_exchange_device(curdev, newdev);
>  	tick_setup_device(td, newdev, cpu, cpumask_of(cpu));
>  	if (newdev->features & CLOCK_EVT_FEAT_ONESHOT)
> -- 
> 1.7.3

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH v2] tick/broadcast: Remove redundant code in tick_check_new_device()
@ 2018-01-05  1:28 Zhenzhong Duan
  0 siblings, 0 replies; 3+ messages in thread
From: Zhenzhong Duan @ 2018-01-05  1:28 UTC (permalink / raw)
  To: tglx, mingo, fweisbec; +Cc: srinivas.eeda, joe.jin, linux-kernel

Hi Maintainers,

Any comment for this v2?

Thanks
zduan
----- zhenzhong.duan@oracle.com wrote:

> There is no way a timer used as broadcast clockevent device is also
> used as
> percpu tick clockevent device currently.
> 
> -v2: remove meaningless description suggested by tglx
> 
> Signed-off-by: Zhenzhong Duan <zhenzhong.duan@oracle.com>
> ---
>  kernel/time/tick-common.c |    7 +------
>  1 files changed, 1 insertions(+), 6 deletions(-)
> 
> diff --git a/kernel/time/tick-common.c b/kernel/time/tick-common.c
> index 49edc1c..9bcc866 100644
> --- a/kernel/time/tick-common.c
> +++ b/kernel/time/tick-common.c
> @@ -320,13 +320,8 @@ void tick_check_new_device(struct
> clock_event_device *newdev)
>  
>  	/*
>  	 * Replace the eventually existing device by the new
> -	 * device. If the current device is the broadcast device, do
> -	 * not give it back to the clockevents layer !
> +	 * device.
>  	 */
> -	if (tick_is_broadcast_device(curdev)) {
> -		clockevents_shutdown(curdev);
> -		curdev = NULL;
> -	}
>  	clockevents_exchange_device(curdev, newdev);
>  	tick_setup_device(td, newdev, cpu, cpumask_of(cpu));
>  	if (newdev->features & CLOCK_EVT_FEAT_ONESHOT)
> -- 
> 1.7.3

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-12-04  9:21 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-11-14 14:36 [PATCH v2] tick/broadcast: Remove redundant code in tick_check_new_device() Zhenzhong Duan
2018-01-05  1:28 Zhenzhong Duan
2018-12-04  9:21 Zhenzhong Duan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®