@@ -56,46 +56,47 @@ enum clock_event_nofitiers {
56
56
57
57
/**
58
58
* struct clock_event_device - clock event device descriptor
59
- * @name: ptr to clock event name
60
- * @features: features
59
+ * @event_handler: Assigned by the framework to be called by the low
60
+ * level handler of the event source
61
+ * @set_next_event: set next event function
62
+ * @next_event: local storage for the next event in oneshot mode
61
63
* @max_delta_ns: maximum delta value in ns
62
64
* @min_delta_ns: minimum delta value in ns
63
65
* @mult: nanosecond to cycles multiplier
64
66
* @shift: nanoseconds to cycles divisor (power of two)
67
+ * @mode: operating mode assigned by the management code
68
+ * @features: features
69
+ * @retries: number of forced programming retries
70
+ * @set_mode: set mode function
71
+ * @broadcast: function to broadcast events
72
+ * @name: ptr to clock event name
65
73
* @rating: variable to rate clock event devices
66
74
* @irq: IRQ number (only for non CPU local devices)
67
75
* @cpumask: cpumask to indicate for which CPUs this device works
68
- * @set_next_event: set next event function
69
- * @set_mode: set mode function
70
- * @event_handler: Assigned by the framework to be called by the low
71
- * level handler of the event source
72
- * @broadcast: function to broadcast events
73
76
* @list: list head for the management code
74
- * @mode: operating mode assigned by the management code
75
- * @next_event: local storage for the next event in oneshot mode
76
- * @retries: number of forced programming retries
77
77
*/
78
78
struct clock_event_device {
79
- const char * name ;
80
- unsigned int features ;
79
+ void (* event_handler )(struct clock_event_device * );
80
+ int (* set_next_event )(unsigned long evt ,
81
+ struct clock_event_device * );
82
+ ktime_t next_event ;
81
83
u64 max_delta_ns ;
82
84
u64 min_delta_ns ;
83
85
u32 mult ;
84
86
u32 shift ;
87
+ enum clock_event_mode mode ;
88
+ unsigned int features ;
89
+ unsigned long retries ;
90
+
91
+ void (* broadcast )(const struct cpumask * mask );
92
+ void (* set_mode )(enum clock_event_mode mode ,
93
+ struct clock_event_device * );
94
+ const char * name ;
85
95
int rating ;
86
96
int irq ;
87
97
const struct cpumask * cpumask ;
88
- int (* set_next_event )(unsigned long evt ,
89
- struct clock_event_device * );
90
- void (* set_mode )(enum clock_event_mode mode ,
91
- struct clock_event_device * );
92
- void (* event_handler )(struct clock_event_device * );
93
- void (* broadcast )(const struct cpumask * mask );
94
98
struct list_head list ;
95
- enum clock_event_mode mode ;
96
- ktime_t next_event ;
97
- unsigned long retries ;
98
- };
99
+ } ____cacheline_aligned ;
99
100
100
101
/*
101
102
* Calculate a multiplication factor for scaled math, which is used to convert
0 commit comments