diff options
| author | Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> | 2013-05-15 10:26:50 -0400 |
|---|---|---|
| committer | Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> | 2013-05-15 10:26:50 -0400 |
| commit | 12e04ffcd93b25dfd726d46338c2ee7d23de556e (patch) | |
| tree | f91479a62805619168994fd3ee55e3ffa23fc24e /include/linux/clockchips.h | |
| parent | 9eff37a8713939f218ab8bf0dc93f1d67af7b8b4 (diff) | |
| parent | f722406faae2d073cc1d01063d1123c35425939e (diff) | |
Merge tag 'v3.10-rc1' into stable/for-linus-3.10
Linux 3.10-rc1
* tag 'v3.10-rc1': (12273 commits)
Linux 3.10-rc1
[SCSI] qla2xxx: Update firmware link in Kconfig file.
[SCSI] iscsi class, qla4xxx: fix sess/conn refcounting when find fns are used
[SCSI] sas: unify the pointlessly separated enums sas_dev_type and sas_device_type
[SCSI] pm80xx: thermal, sas controller config and error handling update
[SCSI] pm80xx: NCQ error handling changes
[SCSI] pm80xx: WWN Modification for PM8081/88/89 controllers
[SCSI] pm80xx: Changed module name and debug messages update
[SCSI] pm80xx: Firmware flash memory free fix, with addition of new memory region for it
[SCSI] pm80xx: SPC new firmware changes for device id 0x8081 alone
[SCSI] pm80xx: Added SPCv/ve specific hardware functionalities and relevant changes in common files
[SCSI] pm80xx: MSI-X implementation for using 64 interrupts
[SCSI] pm80xx: Updated common functions common for SPC and SPCv/ve
[SCSI] pm80xx: Multiple inbound/outbound queue configuration
[SCSI] pm80xx: Added SPCv/ve specific ids, variables and modify for SPC
[SCSI] lpfc: fix up Kconfig dependencies
[SCSI] Handle MLQUEUE busy response in scsi_send_eh_cmnd
dm cache: set config value
dm cache: move config fns
dm thin: generate event when metadata threshold passed
...
Diffstat (limited to 'include/linux/clockchips.h')
| -rw-r--r-- | include/linux/clockchips.h | 44 |
1 files changed, 28 insertions, 16 deletions
diff --git a/include/linux/clockchips.h b/include/linux/clockchips.h index 66346521cb65..963d71431388 100644 --- a/include/linux/clockchips.h +++ b/include/linux/clockchips.h | |||
| @@ -8,6 +8,20 @@ | |||
| 8 | #ifndef _LINUX_CLOCKCHIPS_H | 8 | #ifndef _LINUX_CLOCKCHIPS_H |
| 9 | #define _LINUX_CLOCKCHIPS_H | 9 | #define _LINUX_CLOCKCHIPS_H |
| 10 | 10 | ||
| 11 | /* Clock event notification values */ | ||
| 12 | enum clock_event_nofitiers { | ||
| 13 | CLOCK_EVT_NOTIFY_ADD, | ||
| 14 | CLOCK_EVT_NOTIFY_BROADCAST_ON, | ||
| 15 | CLOCK_EVT_NOTIFY_BROADCAST_OFF, | ||
| 16 | CLOCK_EVT_NOTIFY_BROADCAST_FORCE, | ||
| 17 | CLOCK_EVT_NOTIFY_BROADCAST_ENTER, | ||
| 18 | CLOCK_EVT_NOTIFY_BROADCAST_EXIT, | ||
| 19 | CLOCK_EVT_NOTIFY_SUSPEND, | ||
| 20 | CLOCK_EVT_NOTIFY_RESUME, | ||
| 21 | CLOCK_EVT_NOTIFY_CPU_DYING, | ||
| 22 | CLOCK_EVT_NOTIFY_CPU_DEAD, | ||
| 23 | }; | ||
| 24 | |||
| 11 | #ifdef CONFIG_GENERIC_CLOCKEVENTS_BUILD | 25 | #ifdef CONFIG_GENERIC_CLOCKEVENTS_BUILD |
| 12 | 26 | ||
| 13 | #include <linux/clocksource.h> | 27 | #include <linux/clocksource.h> |
| @@ -26,20 +40,6 @@ enum clock_event_mode { | |||
| 26 | CLOCK_EVT_MODE_RESUME, | 40 | CLOCK_EVT_MODE_RESUME, |
| 27 | }; | 41 | }; |
| 28 | 42 | ||
| 29 | /* Clock event notification values */ | ||
| 30 | enum clock_event_nofitiers { | ||
| 31 | CLOCK_EVT_NOTIFY_ADD, | ||
| 32 | CLOCK_EVT_NOTIFY_BROADCAST_ON, | ||
| 33 | CLOCK_EVT_NOTIFY_BROADCAST_OFF, | ||
| 34 | CLOCK_EVT_NOTIFY_BROADCAST_FORCE, | ||
| 35 | CLOCK_EVT_NOTIFY_BROADCAST_ENTER, | ||
| 36 | CLOCK_EVT_NOTIFY_BROADCAST_EXIT, | ||
| 37 | CLOCK_EVT_NOTIFY_SUSPEND, | ||
| 38 | CLOCK_EVT_NOTIFY_RESUME, | ||
| 39 | CLOCK_EVT_NOTIFY_CPU_DYING, | ||
| 40 | CLOCK_EVT_NOTIFY_CPU_DEAD, | ||
| 41 | }; | ||
| 42 | |||
| 43 | /* | 43 | /* |
| 44 | * Clock event features | 44 | * Clock event features |
| 45 | */ | 45 | */ |
| @@ -55,6 +55,11 @@ enum clock_event_nofitiers { | |||
| 55 | #define CLOCK_EVT_FEAT_C3STOP 0x000008 | 55 | #define CLOCK_EVT_FEAT_C3STOP 0x000008 |
| 56 | #define CLOCK_EVT_FEAT_DUMMY 0x000010 | 56 | #define CLOCK_EVT_FEAT_DUMMY 0x000010 |
| 57 | 57 | ||
| 58 | /* | ||
| 59 | * Core shall set the interrupt affinity dynamically in broadcast mode | ||
| 60 | */ | ||
| 61 | #define CLOCK_EVT_FEAT_DYNIRQ 0x000020 | ||
| 62 | |||
| 58 | /** | 63 | /** |
| 59 | * struct clock_event_device - clock event device descriptor | 64 | * struct clock_event_device - clock event device descriptor |
| 60 | * @event_handler: Assigned by the framework to be called by the low | 65 | * @event_handler: Assigned by the framework to be called by the low |
| @@ -170,10 +175,16 @@ extern void tick_broadcast(const struct cpumask *mask); | |||
| 170 | extern int tick_receive_broadcast(void); | 175 | extern int tick_receive_broadcast(void); |
| 171 | #endif | 176 | #endif |
| 172 | 177 | ||
| 178 | #if defined(CONFIG_GENERIC_CLOCKEVENTS_BROADCAST) && defined(CONFIG_TICK_ONESHOT) | ||
| 179 | extern int tick_check_broadcast_expired(void); | ||
| 180 | #else | ||
| 181 | static inline int tick_check_broadcast_expired(void) { return 0; } | ||
| 182 | #endif | ||
| 183 | |||
| 173 | #ifdef CONFIG_GENERIC_CLOCKEVENTS | 184 | #ifdef CONFIG_GENERIC_CLOCKEVENTS |
| 174 | extern void clockevents_notify(unsigned long reason, void *arg); | 185 | extern void clockevents_notify(unsigned long reason, void *arg); |
| 175 | #else | 186 | #else |
| 176 | # define clockevents_notify(reason, arg) do { } while (0) | 187 | static inline void clockevents_notify(unsigned long reason, void *arg) {} |
| 177 | #endif | 188 | #endif |
| 178 | 189 | ||
| 179 | #else /* CONFIG_GENERIC_CLOCKEVENTS_BUILD */ | 190 | #else /* CONFIG_GENERIC_CLOCKEVENTS_BUILD */ |
| @@ -181,7 +192,8 @@ extern void clockevents_notify(unsigned long reason, void *arg); | |||
| 181 | static inline void clockevents_suspend(void) {} | 192 | static inline void clockevents_suspend(void) {} |
| 182 | static inline void clockevents_resume(void) {} | 193 | static inline void clockevents_resume(void) {} |
| 183 | 194 | ||
| 184 | #define clockevents_notify(reason, arg) do { } while (0) | 195 | static inline void clockevents_notify(unsigned long reason, void *arg) {} |
| 196 | static inline int tick_check_broadcast_expired(void) { return 0; } | ||
| 185 | 197 | ||
| 186 | #endif | 198 | #endif |
| 187 | 199 | ||
