File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -119,12 +119,12 @@ static void nmi_check_duration(struct nmiaction *action, u64 duration)
119
119
120
120
action -> max_duration = duration ;
121
121
122
- remainder_ns = do_div (duration , (1000 * 1000 ));
123
- decimal_msecs = remainder_ns / 1000 ;
122
+ /* Convert duration from nsec to msec */
123
+ remainder_ns = do_div (duration , NSEC_PER_MSEC );
124
+ decimal_msecs = remainder_ns / NSEC_PER_USEC ;
124
125
125
- printk_ratelimited (KERN_INFO
126
- "INFO: NMI handler (%ps) took too long to run: %lld.%03d msecs\n" ,
127
- action -> handler , duration , decimal_msecs );
126
+ pr_info_ratelimited ("INFO: NMI handler (%ps) took too long to run: %lld.%03d msecs\n" ,
127
+ action -> handler , duration , decimal_msecs );
128
128
}
129
129
130
130
static int nmi_handle (unsigned int type , struct pt_regs * regs )
You can’t perform that action at this time.
0 commit comments