Vineet Gupta | d8005e6 | 2013-01-18 15:12:18 +0530 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2012 Synopsys, Inc. (www.synopsys.com) |
| 3 | * |
| 4 | * This program is free software; you can redistribute it and/or modify |
| 5 | * it under the terms of the GNU General Public License version 2 as |
| 6 | * published by the Free Software Foundation. |
| 7 | */ |
| 8 | |
| 9 | #ifndef _ASM_ARC_CLK_H |
| 10 | #define _ASM_ARC_CLK_H |
| 11 | |
| 12 | /* Although we can't really hide core_freq, the accessor is still better way */ |
| 13 | extern unsigned long core_freq; |
| 14 | |
| 15 | static inline unsigned long arc_get_core_freq(void) |
| 16 | { |
| 17 | return core_freq; |
| 18 | } |
| 19 | |
Vineet Gupta | 450dd43 | 2013-01-18 15:12:20 +0530 | [diff] [blame] | 20 | extern int arc_set_core_freq(unsigned long); |
| 21 | |
Vineet Gupta | d8005e6 | 2013-01-18 15:12:18 +0530 | [diff] [blame] | 22 | #endif |