diff options
author | Pavel Tatashin <pasha.tatashin@oracle.com> | 2017-06-12 16:41:45 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-06-12 15:44:03 -0700 |
commit | 89108c3423e8047cd0da73182ea09b9da190b57e (patch) | |
tree | 9096d52fddf142a7b1c90ef17b350a9f537aadd5 /arch/sparc/include/asm/timer_64.h | |
parent | 178bf2b9a20e866677bbca5cb521b09a8498c1d7 (diff) | |
download | talos-obmc-linux-89108c3423e8047cd0da73182ea09b9da190b57e.tar.gz talos-obmc-linux-89108c3423e8047cd0da73182ea09b9da190b57e.zip |
sparc64: improve modularity tick options
This patch prepares the code for early boot time stamps by making it more
modular.
- init_tick_ops() to initialize struct sparc64_tick_ops
- new sparc64_tick_ops operation get_frequency() which returns a
frequency
Signed-off-by: Pavel Tatashin <pasha.tatashin@oracle.com>
Reviewed-by: Bob Picco <bob.picco@oracle.com>
Reviewed-by: Steven Sistare <steven.sistare@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc/include/asm/timer_64.h')
-rw-r--r-- | arch/sparc/include/asm/timer_64.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/sparc/include/asm/timer_64.h b/arch/sparc/include/asm/timer_64.h index bde2cc40ae02..61d07251792c 100644 --- a/arch/sparc/include/asm/timer_64.h +++ b/arch/sparc/include/asm/timer_64.h @@ -22,6 +22,8 @@ struct sparc64_tick_ops { void (*init_tick)(void); unsigned long (*add_tick)(unsigned long); + unsigned long (*get_frequency)(void); + unsigned long frequency; char *name; }; |