mirror of
https://github.com/haproxy/haproxy.git
synced 2026-03-03 05:40:24 -05:00
CLEANUP: activity: mark the profiling and task_profiling_mask __read_mostly
These ones are only read by the scheduler and occasionally written to by the CLI parser, so let's move them to read_mostly so that they do not risk to suffer from cache line pollution.
This commit is contained in:
parent
64192392c4
commit
ef7380f916
1 changed files with 2 additions and 2 deletions
|
|
@ -21,8 +21,8 @@
|
|||
|
||||
|
||||
/* bit field of profiling options. Beware, may be modified at runtime! */
|
||||
unsigned int profiling = HA_PROF_TASKS_AOFF;
|
||||
unsigned long task_profiling_mask = 0;
|
||||
unsigned int profiling __read_mostly = HA_PROF_TASKS_AOFF;
|
||||
unsigned long task_profiling_mask __read_mostly = 0;
|
||||
|
||||
/* One struct per thread containing all collected measurements */
|
||||
struct activity activity[MAX_THREADS] __attribute__((aligned(64))) = { };
|
||||
|
|
|
|||
Loading…
Reference in a new issue