Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d09692d2 authored by Joe Maples's avatar Joe Maples Committed by Razziell
Browse files

block: maple: Remove CONFIG_HZ dependency, assume 300 for interrupt frequency



300 is the default for angler, so assume that while removing the dependency for finer tuning later on

Signed-off-by: default avatarJoe Maples <joe@frap129.org>
parent 2253a26d
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -19,10 +19,10 @@

enum maple_sync { ASYNC, SYNC };

static const int sync_read_expire  = HZ / 2;    /* max time before a read sync is submitted. */
static const int sync_write_expire  = HZ / 2;    /* max time before a write sync is submitted. */
static const int async_read_expire = 5 * HZ;    /* ditto for read async, these limits are SOFT! */
static const int async_write_expire = 5 * HZ;    /* ditto for write async, these limits are SOFT! */
static const int sync_read_expire  = 150;    /* max time before a read sync is submitted. */
static const int sync_write_expire  = 150;    /* max time before a write sync is submitted. */
static const int async_read_expire = 900;    /* ditto for read async, these limits are SOFT! */
static const int async_write_expire = 900;    /* ditto for write async, these limits are SOFT! */
static const int fifo_batch = 16;
static const int writes_starved = 1;	/* max times reads can starve a write */
static const int sleep_latency_multiple = 3;	/* multple for expire time when device is asleep */