lkml.org 
[lkml]   [2022]   [Jan]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 06/16] tools/include: Add cache.h stub
    Date
    Add a dummy version of the cache header.

    Signed-off-by: Karolina Drobnik <karolinadrobnik@gmail.com>
    ---
    tools/include/linux/cache.h | 10 ++++++++++
    1 file changed, 10 insertions(+)
    create mode 100644 tools/include/linux/cache.h

    diff --git a/tools/include/linux/cache.h b/tools/include/linux/cache.h
    new file mode 100644
    index 000000000000..ff010a11f47d
    --- /dev/null
    +++ b/tools/include/linux/cache.h
    @@ -0,0 +1,10 @@
    +/* SPDX-License-Identifier: GPL-2.0 */
    +#ifndef _TOOLS_LINUX_CACHE_H
    +#define _TOOLS_LINUX_CACHE_H
    +
    +#define L1_CACHE_SHIFT 5
    +#define L1_CACHE_BYTES BIT(L1_CACHE_SHIFT)
    +
    +#define SMP_CACHE_BYTES L1_CACHE_BYTES
    +
    +#endif
    --
    2.30.2
    \
     
     \ /
      Last update: 2022-01-27 14:23    [W:3.762 / U:0.124 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site