mirror of
https://github.com/torvalds/linux
synced 2024-07-08 20:29:39 +00:00
Improve data types to fix Coccinelle division warnings
-----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEV76QKkVc4xCGURexaDWVMHDJkrAFAmZCbbIACgkQaDWVMHDJ krC5Dw/9GsRdLN4lGkUhJJ9p1iNbB3qXiOgNIS9ROsh0VHI0FXf36XTsuoWE5+nT eXb/4s0oWApqs2YbriquILfk7Q7fj0/fOYIJJ182sB/WlXBWNIjoR42rNPqDbxA8 yJVoY+RuJ1TClMYMOt6vN3hLbcOd7TU61mXmZexvI48p4GsKKYjqh9LHcaLuTUFU Ibo4tJKxJQRCvY1pX9aJ6ICkMBpewFTrNcnm5iDnGGG+7f73Pq7+9ZdhWjPPt3K5 u/BaQtjTvPB7PlwiKV29c37Ud6FMv/CwOI9rdwRrJRHog6jzqcJd5IV2XlfaYoXL se0yOptSP96MljguWFJ2yIynWtFYJqsmrHOSvytT9VxM10izUqEhU+qrkWzP1sqR NN701cH4FUZV9odYx5kwhquAVecgpW//W47hp4Ghq3BBQvX8Y158Blqem+VDZzYU 6fxz/IxX1SURN/yEAompReMdoBdI+vFwwM3ZKCLMY3ZfUaDaZiWGXjhSBHzzGSVD tg3Clq7AXHcVbRe8h1d0CTh4O8XRLMJDcUM5rq06agrDuJf4F8tXqNZoYSku4Haw dd+U61bWAOFwv7MkePNjg8xglBSV3gyS4uoCxolZvScHz/nxLD+wLWnb6Z5oMlLn ZroyXUMM2FMhoK4ODp3l1OzSRMj780QCvJCRW6SeJ4u2wuCoXdE= =4t5X -----END PGP SIGNATURE----- Merge tag 'x86_apic_for_6.10' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip Pull x86 APIC update from Dave Hansen: "Coccinelle complained about some 64-bit divisions, but the divisor was really just a 32-bit value being stored as 'unsigned long'. Fixing the types fixes the warning" * tag 'x86_apic_for_6.10' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: x86/apic: Improve data types to fix Coccinelle warnings
This commit is contained in:
commit
61deafa9ec
|
@ -631,7 +631,7 @@ void lapic_update_tsc_freq(void)
|
|||
static __initdata int lapic_cal_loops = -1;
|
||||
static __initdata long lapic_cal_t1, lapic_cal_t2;
|
||||
static __initdata unsigned long long lapic_cal_tsc1, lapic_cal_tsc2;
|
||||
static __initdata unsigned long lapic_cal_pm1, lapic_cal_pm2;
|
||||
static __initdata u32 lapic_cal_pm1, lapic_cal_pm2;
|
||||
static __initdata unsigned long lapic_cal_j1, lapic_cal_j2;
|
||||
|
||||
/*
|
||||
|
@ -641,7 +641,7 @@ static void __init lapic_cal_handler(struct clock_event_device *dev)
|
|||
{
|
||||
unsigned long long tsc = 0;
|
||||
long tapic = apic_read(APIC_TMCCT);
|
||||
unsigned long pm = acpi_pm_read_early();
|
||||
u32 pm = acpi_pm_read_early();
|
||||
|
||||
if (boot_cpu_has(X86_FEATURE_TSC))
|
||||
tsc = rdtsc();
|
||||
|
@ -666,7 +666,7 @@ static void __init lapic_cal_handler(struct clock_event_device *dev)
|
|||
}
|
||||
|
||||
static int __init
|
||||
calibrate_by_pmtimer(long deltapm, long *delta, long *deltatsc)
|
||||
calibrate_by_pmtimer(u32 deltapm, long *delta, long *deltatsc)
|
||||
{
|
||||
const long pm_100ms = PMTMR_TICKS_PER_SEC / 10;
|
||||
const long pm_thresh = pm_100ms / 100;
|
||||
|
@ -677,7 +677,7 @@ calibrate_by_pmtimer(long deltapm, long *delta, long *deltatsc)
|
|||
return -1;
|
||||
#endif
|
||||
|
||||
apic_printk(APIC_VERBOSE, "... PM-Timer delta = %ld\n", deltapm);
|
||||
apic_printk(APIC_VERBOSE, "... PM-Timer delta = %u\n", deltapm);
|
||||
|
||||
/* Check, if the PM timer is available */
|
||||
if (!deltapm)
|
||||
|
|
Loading…
Reference in New Issue
Block a user