linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] sched_clock: Remove deprecated setup_sched_clock() API
@ 2014-04-09  0:33 Stephen Boyd
  2014-04-17 18:30 ` Stephen Boyd
  2014-04-22 20:41 ` John Stultz
  0 siblings, 2 replies; 3+ messages in thread
From: Stephen Boyd @ 2014-04-09  0:33 UTC (permalink / raw)
  To: John Stultz; +Cc: linux-kernel, Thomas Gleixner

Remove the 32-bit only setup_sched_clock() API now that all users
have been converted to the 64-bit friendly sched_clock_register().

Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
---

This is based on Linus' tree at a7963eb7f4c4 (Merge branch 'for_linus' of
git://git.kernel.org/pub/scm/linux/kernel/git/jack/linux-fs, 2014-04-07)
but technically this only needs to be based on 2d1eb87ae1e6 (Merge branch
'for-linus' of git://ftp.arm.linux.org.uk/~rmk/linux-arm, 2014-04-05) because
the last user of setup_sched_clock() was in rmk's tree.

 include/linux/sched_clock.h |  1 -
 kernel/time/sched_clock.c   | 13 -------------
 2 files changed, 14 deletions(-)

diff --git a/include/linux/sched_clock.h b/include/linux/sched_clock.h
index cddf0c2940b6..efa931c5cef1 100644
--- a/include/linux/sched_clock.h
+++ b/include/linux/sched_clock.h
@@ -14,7 +14,6 @@ extern void sched_clock_postinit(void);
 static inline void sched_clock_postinit(void) { }
 #endif
 
-extern void setup_sched_clock(u32 (*read)(void), int bits, unsigned long rate);
 extern void sched_clock_register(u64 (*read)(void), int bits,
 				 unsigned long rate);
 
diff --git a/kernel/time/sched_clock.c b/kernel/time/sched_clock.c
index 4d23dc4d8139..445106d2c729 100644
--- a/kernel/time/sched_clock.c
+++ b/kernel/time/sched_clock.c
@@ -49,13 +49,6 @@ static u64 notrace jiffy_sched_clock_read(void)
 	return (u64)(jiffies - INITIAL_JIFFIES);
 }
 
-static u32 __read_mostly (*read_sched_clock_32)(void);
-
-static u64 notrace read_sched_clock_32_wrapper(void)
-{
-	return read_sched_clock_32();
-}
-
 static u64 __read_mostly (*read_sched_clock)(void) = jiffy_sched_clock_read;
 
 static inline u64 notrace cyc_to_ns(u64 cyc, u32 mult, u32 shift)
@@ -176,12 +169,6 @@ void __init sched_clock_register(u64 (*read)(void), int bits,
 	pr_debug("Registered %pF as sched_clock source\n", read);
 }
 
-void __init setup_sched_clock(u32 (*read)(void), int bits, unsigned long rate)
-{
-	read_sched_clock_32 = read;
-	sched_clock_register(read_sched_clock_32_wrapper, bits, rate);
-}
-
 void __init sched_clock_postinit(void)
 {
 	/*
-- 
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
hosted by The Linux Foundation


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

* Re: [PATCH] sched_clock: Remove deprecated setup_sched_clock() API
  2014-04-09  0:33 [PATCH] sched_clock: Remove deprecated setup_sched_clock() API Stephen Boyd
@ 2014-04-17 18:30 ` Stephen Boyd
  2014-04-22 20:41 ` John Stultz
  1 sibling, 0 replies; 3+ messages in thread
From: Stephen Boyd @ 2014-04-17 18:30 UTC (permalink / raw)
  To: John Stultz; +Cc: linux-kernel, Thomas Gleixner

On 04/08/14 17:33, Stephen Boyd wrote:
> Remove the 32-bit only setup_sched_clock() API now that all users
> have been converted to the 64-bit friendly sched_clock_register().
>
> Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
> ---
>
> This is based on Linus' tree at a7963eb7f4c4 (Merge branch 'for_linus' of
> git://git.kernel.org/pub/scm/linux/kernel/git/jack/linux-fs, 2014-04-07)
> but technically this only needs to be based on 2d1eb87ae1e6 (Merge branch
> 'for-linus' of git://ftp.arm.linux.org.uk/~rmk/linux-arm, 2014-04-05) because
> the last user of setup_sched_clock() was in rmk's tree.

ping?

>
>  include/linux/sched_clock.h |  1 -
>  kernel/time/sched_clock.c   | 13 -------------
>  2 files changed, 14 deletions(-)
>
> diff --git a/include/linux/sched_clock.h b/include/linux/sched_clock.h
> index cddf0c2940b6..efa931c5cef1 100644
> --- a/include/linux/sched_clock.h
> +++ b/include/linux/sched_clock.h
> @@ -14,7 +14,6 @@ extern void sched_clock_postinit(void);
>  static inline void sched_clock_postinit(void) { }
>  #endif
>  
> -extern void setup_sched_clock(u32 (*read)(void), int bits, unsigned long rate);
>  extern void sched_clock_register(u64 (*read)(void), int bits,
>  				 unsigned long rate);
>  
> diff --git a/kernel/time/sched_clock.c b/kernel/time/sched_clock.c
> index 4d23dc4d8139..445106d2c729 100644
> --- a/kernel/time/sched_clock.c
> +++ b/kernel/time/sched_clock.c
> @@ -49,13 +49,6 @@ static u64 notrace jiffy_sched_clock_read(void)
>  	return (u64)(jiffies - INITIAL_JIFFIES);
>  }
>  
> -static u32 __read_mostly (*read_sched_clock_32)(void);
> -
> -static u64 notrace read_sched_clock_32_wrapper(void)
> -{
> -	return read_sched_clock_32();
> -}
> -
>  static u64 __read_mostly (*read_sched_clock)(void) = jiffy_sched_clock_read;
>  
>  static inline u64 notrace cyc_to_ns(u64 cyc, u32 mult, u32 shift)
> @@ -176,12 +169,6 @@ void __init sched_clock_register(u64 (*read)(void), int bits,
>  	pr_debug("Registered %pF as sched_clock source\n", read);
>  }
>  
> -void __init setup_sched_clock(u32 (*read)(void), int bits, unsigned long rate)
> -{
> -	read_sched_clock_32 = read;
> -	sched_clock_register(read_sched_clock_32_wrapper, bits, rate);
> -}
> -
>  void __init sched_clock_postinit(void)
>  {
>  	/*

-- 
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
hosted by The Linux Foundation


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

* Re: [PATCH] sched_clock: Remove deprecated setup_sched_clock() API
  2014-04-09  0:33 [PATCH] sched_clock: Remove deprecated setup_sched_clock() API Stephen Boyd
  2014-04-17 18:30 ` Stephen Boyd
@ 2014-04-22 20:41 ` John Stultz
  1 sibling, 0 replies; 3+ messages in thread
From: John Stultz @ 2014-04-22 20:41 UTC (permalink / raw)
  To: Stephen Boyd; +Cc: linux-kernel, Thomas Gleixner

On 04/08/2014 05:33 PM, Stephen Boyd wrote:
> Remove the 32-bit only setup_sched_clock() API now that all users
> have been converted to the 64-bit friendly sched_clock_register().
>
> Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>

Got this queued for 3.16. Thanks!
-john


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

end of thread, other threads:[~2014-04-22 20:41 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-09  0:33 [PATCH] sched_clock: Remove deprecated setup_sched_clock() API Stephen Boyd
2014-04-17 18:30 ` Stephen Boyd
2014-04-22 20:41 ` John Stultz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).