drm/amd/powerplay: always use fast UCLK switching when UCLK DPM enabled
[sfrench/cifs-2.6.git] / drivers / atm / he.c
index e58538c29377710ed6f0a1b83883c1b8db91e41b..29f102dcfec499885fd9feed86fb54c7b3617059 100644 (file)
@@ -738,13 +738,13 @@ static int he_init_cs_block_rcm(struct he_dev *he_dev)
 #else
                /* this is pretty, but avoids _divdu3 and is mostly correct */
                mult = he_dev->atm_dev->link_rate / ATM_OC3_PCR;
-               if (rate_cps > (272 * mult))
+               if (rate_cps > (272ULL * mult))
                        buf = 4;
-               else if (rate_cps > (204 * mult))
+               else if (rate_cps > (204ULL * mult))
                        buf = 3;
-               else if (rate_cps > (136 * mult))
+               else if (rate_cps > (136ULL * mult))
                        buf = 2;
-               else if (rate_cps > (68 * mult))
+               else if (rate_cps > (68ULL * mult))
                        buf = 1;
                else
                        buf = 0;