Files
android_kernel_xiaomi_sm8450/arch/mips/include/asm
Paul Burton 856fbcee60 MIPS: Store core & VP IDs in GlobalNumber-style variable
This patch modifies the way we store core & VP IDs such that we store
them in a single 32 bit integer whose format matches that of the MIPSr6
GlobalNumber register. Whereas we have previously stored core & VP IDs
in separate fields, storing them in a single GlobalNumber-like field:

  1) Reduces the size of struct cpuinfo_mips by 4 bytes, and will allow
     it to not grow when cluster support is added.

  2) Gives us a natural place to store cluster number, which matches up
     with what the architecture provides.

  3) Will be useful in the future as a parameter to the MIPSr6 GINVI
     instruction to specify a target CPU whose icache that instruction
     should operate on.

The cpu_set*() accessor functions are moved out of the asm/cpu-info.h
header in order to allow them to use the WARN_ON macro, which is
unusable in asm/cpu-info.h due to include ordering.

Signed-off-by: Paul Burton <paul.burton@imgtec.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/17010/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
2017-08-30 00:57:27 +02:00
..
2017-08-29 15:21:50 +02:00
2016-04-03 12:32:09 +02:00
2016-05-28 12:35:08 +02:00
2016-04-03 12:32:09 +02:00
2014-01-22 20:19:02 +01:00
2017-08-29 15:21:50 +02:00
2017-03-28 16:43:25 -04:00
2015-11-12 11:35:47 +01:00
2017-08-29 15:21:51 +02:00
2017-08-29 15:21:51 +02:00
2015-05-28 15:31:53 +02:00
2014-08-26 02:18:56 +02:00
2014-05-24 00:07:01 +02:00
2016-05-28 12:35:06 +02:00
2017-06-29 02:42:26 +02:00
2015-09-03 12:08:05 +02:00
2016-05-28 12:35:07 +02:00
2017-08-29 15:21:51 +02:00
2017-05-18 15:39:19 -05:00
2017-06-08 14:51:58 +02:00
2016-10-04 16:13:57 +02:00
2017-03-28 16:43:25 -04:00
2014-08-02 00:06:38 +02:00
2014-01-22 20:19:02 +01:00
2016-04-03 12:32:09 +02:00
2017-08-29 15:21:50 +02:00
2017-08-29 15:21:50 +02:00
2017-01-03 16:34:42 +01:00
2017-07-11 14:13:06 +02:00
2017-06-28 12:22:39 +02:00
2017-05-27 15:38:02 -04:00
2013-09-18 17:13:58 +02:00
2016-05-09 12:00:02 +02:00