perf: Clean up perf_{session,alloc} management
[akaros.git] / kern / include / ros / cpu_feat.h
1 /* Copyright (c) 2016 Google Inc.
2  * Barret Rhoden <brho@cs.berkeley.edu>
3  * See LICENSE for details.
4  *
5  * CPU feature detection.
6  *
7  * You can add new items as needed.  Changing __CPU_FEAT_ARCH_START will require
8  * a rebuild of the world.  Otherwise, you just need to reinstall kernel
9  * headers. */
10
11 #pragma once
12
13 #include <ros/common.h>
14
15 #define CPU_FEAT_VMM                                    1
16 #define __CPU_FEAT_ARCH_START                   64
17
18 #include <ros/arch/cpu_feat.h>
19
20 #define __NR_CPU_FEAT_BITS DIV_ROUND_UP(__NR_CPU_FEAT,                         \
21                                         sizeof(unsigned long) * 8)