diff options
| author | Jiri Slaby (SUSE) <jirislaby@kernel.org> | 2024-02-02 07:55:47 +0100 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2024-02-06 14:37:37 +0000 |
| commit | fb8fa9093a4d2b5be4516a66c64b10cc35458333 (patch) | |
| tree | 96564f9d8276cbf494a88a6674c039fc98e1b1cf /tools/perf/scripts/python/flamegraph.py | |
| parent | serial: core: make serial_base_bus_type const (diff) | |
| download | linux-fb8fa9093a4d2b5be4516a66c64b10cc35458333.tar.gz linux-fb8fa9093a4d2b5be4516a66c64b10cc35458333.zip | |
tty: vt: make rgb_from_256() slighly more comprehensible
* make the parameter unsigned, as it is expected to be unsigned,
* make the computation easier to follow -- step-by-step, and
* don't use 85 / 2 which is only a reduced form of 255 / 6 (by a factor
3). Unlike the former, the latter can be understood.
Signed-off-by: "Jiri Slaby (SUSE)" <jirislaby@kernel.org>
Link: https://lore.kernel.org/r/20240202065608.14019-2-jirislaby@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/flamegraph.py')
0 files changed, 0 insertions, 0 deletions
