File tree Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -371,6 +371,19 @@ static __always_inline unsigned long msecs_to_jiffies(const unsigned int m)
371371 }
372372}
373373
374+ /**
375+ * secs_to_jiffies: - convert seconds to jiffies
376+ * @_secs: time in seconds
377+ *
378+ * Conversion is done by simple multiplication with HZ
379+ *
380+ * secs_to_jiffies() is defined as a macro rather than a static inline
381+ * function so it can be used in static initializers.
382+ *
383+ * Return: jiffies value
384+ */
385+ #define secs_to_jiffies (_secs ) (unsigned long)((_secs) * HZ)
386+
374387extern unsigned long __usecs_to_jiffies (const unsigned int u );
375388#if !(USEC_PER_SEC % HZ )
376389static inline unsigned long _usecs_to_jiffies (const unsigned int u )
Original file line number Diff line number Diff line change 4242#define ZERO_KEY "\x00\x00\x00\x00\x00\x00\x00\x00" \
4343 "\x00\x00\x00\x00\x00\x00\x00\x00"
4444
45- #define secs_to_jiffies (_secs ) msecs_to_jiffies((_secs) * 1000)
46-
4745/* Handle HCI Event packets */
4846
4947static void * hci_ev_skb_pull (struct hci_dev * hdev , struct sk_buff * skb ,
You can’t perform that action at this time.
0 commit comments