Skip to content
Permalink
Branch: master
Commits on Aug 21, 2019
  1. simple_lmk: Add support for kernels older than 3.14

    kerneltoast committed Aug 21, 2019
    Linux 3.14 changed the location of MAX_RT_PRIO and introduced the
    MIN_NICE macro. Fix these dependencies to make Simple LMK compile for
    these older kernels.
    
    Reported-by: Laster K. (lazerl0rd) <officiallazerl0rd@gmail.com>
    Signed-off-by: Sultan Alsawaf <sultan@kerneltoast.com>
  2. simple_lmk: Use proper atomic_* operations where needed

    kerneltoast committed Aug 21, 2019
    cmpxchg() is only atomic with respect to the local CPU, so it cannot be
    relied on with how it's used in Simple LMK. Switch to fully atomic
    operations instead for full atomic guarantees.
    
    Signed-off-by: Sultan Alsawaf <sultan@kerneltoast.com>
  3. simple_lmk: Remove kthread_should_stop() exit condition

    kerneltoast committed Aug 21, 2019
    Simple LMK's reclaim thread should never stop; there's no need to have
    this check.
    
    Signed-off-by: Sultan Alsawaf <sultan@kerneltoast.com>
You can’t perform that action at this time.