diff options
author | Randall Spangler <rspangler@chromium.org> | 2013-03-18 15:43:05 -0700 |
---|---|---|
committer | ChromeBot <chrome-bot@google.com> | 2013-03-19 10:31:12 -0700 |
commit | 9ddb7e07086bf7724ac234c1e7844f435abc811c (patch) | |
tree | 47275fcc6a8d55c2d5af29bb593c0fb5775fb8c5 /test | |
parent | 6c285c09941dfb1924b037476e823ecff20c897d (diff) | |
download | chrome-ec-9ddb7e07086bf7724ac234c1e7844f435abc811c.tar.gz |
Rename tasks to HOOKS and CHIPSET
Rename tasks
TICK -> HOOKS
The hooks task handles more than just the TICK hook now.
X86POWER -> CHIPSET
GAIAPOWER -> CHIPSET
Kinda kludgy that the name of the task controls which chipset source gets
included. Change this to a CONFIG_CHIPSET_{X86,GAIA} #define to make it
easier to support future chipsets. Also, rename the task function to
chipset_task() so ec.tasklist is chipset-agnostic.
No code changes, just renaming constants and functions.
BUG=none
BRANCH=none
TEST=build bds,link,daisy,snow,spring
Change-Id: I163ce1cd27b2d8d030d42bb1f7eb46b880c244fb
Signed-off-by: Randall Spangler <rspangler@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/45805
Diffstat (limited to 'test')
-rw-r--r-- | test/charging.tasklist | 6 | ||||
-rw-r--r-- | test/flash_overwrite.tasklist | 4 | ||||
-rw-r--r-- | test/flash_rw_erase.tasklist | 4 | ||||
-rw-r--r-- | test/hello.tasklist | 4 | ||||
-rw-r--r-- | test/kb_debounce.tasklist | 6 | ||||
-rw-r--r-- | test/kb_deghost.tasklist | 6 | ||||
-rw-r--r-- | test/mutex.tasklist | 4 | ||||
-rw-r--r-- | test/pingpong.tasklist | 4 | ||||
-rw-r--r-- | test/power_button.tasklist | 6 | ||||
-rw-r--r-- | test/powerdemo.tasklist | 4 | ||||
-rw-r--r-- | test/scancode.tasklist | 6 | ||||
-rw-r--r-- | test/thermal.tasklist | 6 | ||||
-rw-r--r-- | test/timer_calib.tasklist | 4 | ||||
-rw-r--r-- | test/timer_dos.tasklist | 4 | ||||
-rw-r--r-- | test/timer_jump.tasklist | 5 | ||||
-rw-r--r-- | test/typematic.tasklist | 6 |
16 files changed, 39 insertions, 40 deletions
diff --git a/test/charging.tasklist b/test/charging.tasklist index b5ee86cfe7..244dfc2d77 100644 --- a/test/charging.tasklist +++ b/test/charging.tasklist @@ -1,4 +1,4 @@ -/* Copyright (c) 2012 The Chromium OS Authors. All rights reserved. +/* Copyright (c) 2013 The Chromium OS Authors. All rights reserved. * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ @@ -15,11 +15,11 @@ * 's' is the stack size in bytes; must be a multiple of 8 */ #define CONFIG_TASK_LIST \ - TASK(TICK, hook_task, NULL, TASK_STACK_SIZE) \ + TASK(HOOKS, hook_task, NULL, TASK_STACK_SIZE) \ TASK(VBOOTHASH, vboot_hash_task, NULL, TASK_STACK_SIZE) \ TASK(TYPEMATIC, keyboard_typematic_task, NULL, TASK_STACK_SIZE) \ TASK(CHARGER, charge_state_machine_task, NULL, TASK_STACK_SIZE) \ - TASK(X86POWER, x86_power_task, NULL, TASK_STACK_SIZE) \ + TASK(CHIPSET, chipset_task, NULL, TASK_STACK_SIZE) \ TASK(I8042CMD, i8042_command_task, NULL, TASK_STACK_SIZE) \ TASK(KEYSCAN, keyboard_scan_task, NULL, TASK_STACK_SIZE) \ TASK(SWITCH, switch_task, NULL, TASK_STACK_SIZE) \ diff --git a/test/flash_overwrite.tasklist b/test/flash_overwrite.tasklist index 8ed7251437..7864a0a1fb 100644 --- a/test/flash_overwrite.tasklist +++ b/test/flash_overwrite.tasklist @@ -1,4 +1,4 @@ -/* Copyright (c) 2012 The Chromium OS Authors. All rights reserved. +/* Copyright (c) 2013 The Chromium OS Authors. All rights reserved. * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ @@ -15,7 +15,7 @@ * 's' is the stack size in bytes; must be a multiple of 8 */ #define CONFIG_TASK_LIST \ - TASK(TICK, hook_task, NULL, TASK_STACK_SIZE) \ + TASK(HOOKS, hook_task, NULL, TASK_STACK_SIZE) \ TASK(VBOOTHASH, vboot_hash_task, NULL, TASK_STACK_SIZE) \ TASK(HOSTCMD, host_command_task, NULL, TASK_STACK_SIZE) \ TASK(CONSOLE, console_task, NULL, TASK_STACK_SIZE) diff --git a/test/flash_rw_erase.tasklist b/test/flash_rw_erase.tasklist index fc65eeb63a..5d6e3d0c7b 100644 --- a/test/flash_rw_erase.tasklist +++ b/test/flash_rw_erase.tasklist @@ -1,4 +1,4 @@ -/* Copyright (c) 2012 The Chromium OS Authors. All rights reserved. +/* Copyright (c) 2013 The Chromium OS Authors. All rights reserved. * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ @@ -15,7 +15,7 @@ * 's' is the stack size in bytes; must be a multiple of 8 */ #define CONFIG_TASK_LIST \ - TASK(TICK, hook_task, NULL, TASK_STACK_SIZE) \ + TASK(HOOKS, hook_task, NULL, TASK_STACK_SIZE) \ TASK(VBOOTHASH, vboot_hash_task, NULL, TASK_STACK_SIZE) \ TASK(HOSTCMD, host_command_task, NULL, TASK_STACK_SIZE) \ TASK(CONSOLE, console_task, NULL, TASK_STACK_SIZE) diff --git a/test/hello.tasklist b/test/hello.tasklist index fc65eeb63a..5d6e3d0c7b 100644 --- a/test/hello.tasklist +++ b/test/hello.tasklist @@ -1,4 +1,4 @@ -/* Copyright (c) 2012 The Chromium OS Authors. All rights reserved. +/* Copyright (c) 2013 The Chromium OS Authors. All rights reserved. * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ @@ -15,7 +15,7 @@ * 's' is the stack size in bytes; must be a multiple of 8 */ #define CONFIG_TASK_LIST \ - TASK(TICK, hook_task, NULL, TASK_STACK_SIZE) \ + TASK(HOOKS, hook_task, NULL, TASK_STACK_SIZE) \ TASK(VBOOTHASH, vboot_hash_task, NULL, TASK_STACK_SIZE) \ TASK(HOSTCMD, host_command_task, NULL, TASK_STACK_SIZE) \ TASK(CONSOLE, console_task, NULL, TASK_STACK_SIZE) diff --git a/test/kb_debounce.tasklist b/test/kb_debounce.tasklist index 1b1fa5a050..ca7499f9a5 100644 --- a/test/kb_debounce.tasklist +++ b/test/kb_debounce.tasklist @@ -1,4 +1,4 @@ -/* Copyright (c) 2012 The Chromium OS Authors. All rights reserved. +/* Copyright (c) 2013 The Chromium OS Authors. All rights reserved. * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ @@ -14,10 +14,10 @@ * 'd' in an opaque parameter passed to the routine at startup */ #define CONFIG_TASK_LIST \ - TASK(TICK, hook_task, NULL, TASK_STACK_SIZE) \ + TASK(HOOKS, hook_task, NULL, TASK_STACK_SIZE) \ TASK(VBOOTHASH, vboot_hash_task, NULL, TASK_STACK_SIZE) \ TASK(TYPEMATIC, keyboard_typematic_task, NULL, TASK_STACK_SIZE) \ - TASK(X86POWER, x86_power_task, NULL, TASK_STACK_SIZE) \ + TASK(CHIPSET, chipset_task, NULL, TASK_STACK_SIZE) \ TASK(I8042CMD, i8042_command_task, NULL, TASK_STACK_SIZE) \ TASK(KEYSCAN, keyboard_scan_task, NULL, TASK_STACK_SIZE) \ TASK(SWITCH, switch_task, NULL, TASK_STACK_SIZE) \ diff --git a/test/kb_deghost.tasklist b/test/kb_deghost.tasklist index 7b03c3f854..0dae312bb4 100644 --- a/test/kb_deghost.tasklist +++ b/test/kb_deghost.tasklist @@ -1,4 +1,4 @@ -/* Copyright (c) 2012 The Chromium OS Authors. All rights reserved. +/* Copyright (c) 2013 The Chromium OS Authors. All rights reserved. * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ @@ -15,10 +15,10 @@ * 's' is the stack size in bytes; must be a multiple of 8 */ #define CONFIG_TASK_LIST \ - TASK(TICK, hook_task, NULL, TASK_STACK_SIZE) \ + TASK(HOOKS, hook_task, NULL, TASK_STACK_SIZE) \ TASK(VBOOTHASH, vboot_hash_task, NULL, TASK_STACK_SIZE) \ TASK(TYPEMATIC, keyboard_typematic_task, NULL, TASK_STACK_SIZE) \ - TASK(X86POWER, x86_power_task, NULL, TASK_STACK_SIZE) \ + TASK(CHIPSET, chipset_task, NULL, TASK_STACK_SIZE) \ TASK(I8042CMD, i8042_command_task, NULL, TASK_STACK_SIZE) \ TASK(KEYSCAN, keyboard_scan_task, NULL, TASK_STACK_SIZE) \ TASK(SWITCH, switch_task, NULL, TASK_STACK_SIZE) \ diff --git a/test/mutex.tasklist b/test/mutex.tasklist index e27e9d385a..df7cb73e56 100644 --- a/test/mutex.tasklist +++ b/test/mutex.tasklist @@ -1,4 +1,4 @@ -/* Copyright (c) 2012 The Chromium OS Authors. All rights reserved. +/* Copyright (c) 2013 The Chromium OS Authors. All rights reserved. * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ @@ -15,7 +15,7 @@ * 's' is the stack size in bytes; must be a multiple of 8 */ #define CONFIG_TASK_LIST \ - TASK(TICK, hook_task, NULL, TASK_STACK_SIZE) \ + TASK(HOOKS, hook_task, NULL, TASK_STACK_SIZE) \ TASK(VBOOTHASH, vboot_hash_task, NULL, TASK_STACK_SIZE) \ TASK(HOSTCMD, host_command_task, NULL, TASK_STACK_SIZE) \ TASK(CONSOLE, console_task, NULL, TASK_STACK_SIZE) \ diff --git a/test/pingpong.tasklist b/test/pingpong.tasklist index ca28d23cd5..5ddb8285fc 100644 --- a/test/pingpong.tasklist +++ b/test/pingpong.tasklist @@ -1,4 +1,4 @@ -/* Copyright (c) 2012 The Chromium OS Authors. All rights reserved. +/* Copyright (c) 2013 The Chromium OS Authors. All rights reserved. * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ @@ -15,7 +15,7 @@ * 's' is the stack size in bytes; must be a multiple of 8 */ #define CONFIG_TASK_LIST \ - TASK(TICK, hook_task, NULL, TASK_STACK_SIZE) \ + TASK(HOOKS, hook_task, NULL, TASK_STACK_SIZE) \ TASK(VBOOTHASH, vboot_hash_task, NULL, TASK_STACK_SIZE) \ TASK(HOSTCMD, host_command_task, NULL, TASK_STACK_SIZE) \ TASK(CONSOLE, console_task, NULL, TASK_STACK_SIZE) \ diff --git a/test/power_button.tasklist b/test/power_button.tasklist index 9f62015695..a2dc5360fb 100644 --- a/test/power_button.tasklist +++ b/test/power_button.tasklist @@ -1,4 +1,4 @@ -/* Copyright (c) 2012 The Chromium OS Authors. All rights reserved. +/* Copyright (c) 2013 The Chromium OS Authors. All rights reserved. * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ @@ -15,10 +15,10 @@ * 's' is the stack size in bytes; must be a multiple of 8 */ #define CONFIG_TASK_LIST \ - TASK(TICK, hook_task, NULL, TASK_STACK_SIZE) \ + TASK(HOOKS, hook_task, NULL, TASK_STACK_SIZE) \ TASK(VBOOTHASH, vboot_hash_task, NULL, TASK_STACK_SIZE) \ TASK(TYPEMATIC, keyboard_typematic_task, NULL, TASK_STACK_SIZE) \ - TASK(X86POWER, x86_power_task, NULL, TASK_STACK_SIZE) \ + TASK(CHIPSET, chipset_task, NULL, TASK_STACK_SIZE) \ TASK(I8042CMD, i8042_command_task, NULL, TASK_STACK_SIZE) \ TASK(SWITCH, switch_task, NULL, TASK_STACK_SIZE) \ TASK(KEYSCAN, keyboard_scan_task, NULL, TASK_STACK_SIZE) \ diff --git a/test/powerdemo.tasklist b/test/powerdemo.tasklist index 74ad0db736..d74e98591b 100644 --- a/test/powerdemo.tasklist +++ b/test/powerdemo.tasklist @@ -1,4 +1,4 @@ -/* Copyright (c) 2012 The Chromium OS Authors. All rights reserved. +/* Copyright (c) 2013 The Chromium OS Authors. All rights reserved. * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ @@ -15,6 +15,6 @@ * 's' is the stack size in bytes; must be a multiple of 8 */ #define CONFIG_TASK_LIST \ - TASK(TICK, hook_task, NULL, TASK_STACK_SIZE) \ + TASK(HOOKS, hook_task, NULL, TASK_STACK_SIZE) \ TASK(CONSOLE, console_task, NULL, TASK_STACK_SIZE) \ TASK(POWERDEMO, power_demo_task, NULL, TASK_STACK_SIZE) diff --git a/test/scancode.tasklist b/test/scancode.tasklist index 7d8e3c14a0..d4dee90a59 100644 --- a/test/scancode.tasklist +++ b/test/scancode.tasklist @@ -1,4 +1,4 @@ -/* Copyright (c) 2012 The Chromium OS Authors. All rights reserved. +/* Copyright (c) 2013 The Chromium OS Authors. All rights reserved. * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ @@ -15,10 +15,10 @@ * 's' is the stack size in bytes; must be a multiple of 8 */ #define CONFIG_TASK_LIST \ - TASK(TICK, hook_task, NULL, TASK_STACK_SIZE) \ + TASK(HOOKS, hook_task, NULL, TASK_STACK_SIZE) \ TASK(VBOOTHASH, vboot_hash_task, NULL, TASK_STACK_SIZE) \ TASK(TYPEMATIC, keyboard_typematic_task, NULL, TASK_STACK_SIZE) \ - TASK(X86POWER, x86_power_task, NULL, TASK_STACK_SIZE) \ + TASK(CHIPSET, chipset_task, NULL, TASK_STACK_SIZE) \ TASK(I8042CMD, i8042_command_task, NULL, TASK_STACK_SIZE) \ TASK(KEYSCAN, keyboard_scan_task, NULL, TASK_STACK_SIZE) \ TASK(SWITCH, switch_task, NULL, TASK_STACK_SIZE) \ diff --git a/test/thermal.tasklist b/test/thermal.tasklist index ad112f814a..5bb13bbc60 100644 --- a/test/thermal.tasklist +++ b/test/thermal.tasklist @@ -1,4 +1,4 @@ -/* Copyright (c) 2012 The Chromium OS Authors. All rights reserved. +/* Copyright (c) 2013 The Chromium OS Authors. All rights reserved. * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ @@ -15,9 +15,9 @@ * 's' is the stack size in bytes; must be a multiple of 8 */ #define CONFIG_TASK_LIST \ - TASK(TICK, hook_task, NULL, TASK_STACK_SIZE) \ + TASK(HOOKS, hook_task, NULL, TASK_STACK_SIZE) \ TASK(VBOOTHASH, vboot_hash_task, NULL, TASK_STACK_SIZE) \ TASK(THERMAL, thermal_task, NULL, TASK_STACK_SIZE) \ - TASK(X86POWER, x86_power_task, NULL, TASK_STACK_SIZE) \ + TASK(CHIPSET, chipset_task, NULL, TASK_STACK_SIZE) \ TASK(HOSTCMD, host_command_task, NULL, TASK_STACK_SIZE) \ TASK(CONSOLE, console_task, NULL, TASK_STACK_SIZE) diff --git a/test/timer_calib.tasklist b/test/timer_calib.tasklist index 00b31fb899..1763b91d6e 100644 --- a/test/timer_calib.tasklist +++ b/test/timer_calib.tasklist @@ -1,4 +1,4 @@ -/* Copyright (c) 2012 The Chromium OS Authors. All rights reserved. +/* Copyright (c) 2013 The Chromium OS Authors. All rights reserved. * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ @@ -15,7 +15,7 @@ * 's' is the stack size in bytes; must be a multiple of 8 */ #define CONFIG_TASK_LIST \ - TASK(TICK, hook_task, NULL, TASK_STACK_SIZE) \ + TASK(HOOKS, hook_task, NULL, TASK_STACK_SIZE) \ TASK(VBOOTHASH, vboot_hash_task, NULL, TASK_STACK_SIZE) \ TASK(TESTTMR, timer_calib_task, (void *)'T', TASK_STACK_SIZE) \ TASK(HOSTCMD, host_command_task, NULL, TASK_STACK_SIZE) \ diff --git a/test/timer_dos.tasklist b/test/timer_dos.tasklist index 82378ce6ec..69be9a127e 100644 --- a/test/timer_dos.tasklist +++ b/test/timer_dos.tasklist @@ -1,4 +1,4 @@ -/* Copyright (c) 2012 The Chromium OS Authors. All rights reserved. +/* Copyright (c) 2013 The Chromium OS Authors. All rights reserved. * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ @@ -15,7 +15,7 @@ * 's' is the stack size in bytes; must be a multiple of 8 */ #define CONFIG_TASK_LIST \ - TASK(TICK, hook_task, NULL, TASK_STACK_SIZE) \ + TASK(HOOKS, hook_task, NULL, TASK_STACK_SIZE) \ TASK(VBOOTHASH, vboot_hash_task, NULL, TASK_STACK_SIZE) \ TASK(HOSTCMD, host_command_task, NULL, TASK_STACK_SIZE) \ TASK(CONSOLE, console_task, NULL, TASK_STACK_SIZE) \ diff --git a/test/timer_jump.tasklist b/test/timer_jump.tasklist index ccb6fe7a4c..c6ad1a3856 100644 --- a/test/timer_jump.tasklist +++ b/test/timer_jump.tasklist @@ -1,4 +1,4 @@ -/* Copyright (c) 2012 The Chromium OS Authors. All rights reserved. +/* Copyright (c) 2013 The Chromium OS Authors. All rights reserved. * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ @@ -15,8 +15,7 @@ * 's' is the stack size in bytes; must be a multiple of 8 */ #define CONFIG_TASK_LIST \ - TASK(TICK, hook_task, NULL, TASK_STACK_SIZE) \ - TASK(WATCHDOG, watchdog_task, NULL, TASK_STACK_SIZE) \ + TASK(HOOKS, hook_task, NULL, TASK_STACK_SIZE) \ TASK(VBOOTHASH, vboot_hash_task, NULL, TASK_STACK_SIZE) \ TASK(CONSOLE, console_task, NULL, TASK_STACK_SIZE) \ TASK(HOSTCMD, host_command_task, NULL, TASK_STACK_SIZE) diff --git a/test/typematic.tasklist b/test/typematic.tasklist index 7b03c3f854..0dae312bb4 100644 --- a/test/typematic.tasklist +++ b/test/typematic.tasklist @@ -1,4 +1,4 @@ -/* Copyright (c) 2012 The Chromium OS Authors. All rights reserved. +/* Copyright (c) 2013 The Chromium OS Authors. All rights reserved. * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ @@ -15,10 +15,10 @@ * 's' is the stack size in bytes; must be a multiple of 8 */ #define CONFIG_TASK_LIST \ - TASK(TICK, hook_task, NULL, TASK_STACK_SIZE) \ + TASK(HOOKS, hook_task, NULL, TASK_STACK_SIZE) \ TASK(VBOOTHASH, vboot_hash_task, NULL, TASK_STACK_SIZE) \ TASK(TYPEMATIC, keyboard_typematic_task, NULL, TASK_STACK_SIZE) \ - TASK(X86POWER, x86_power_task, NULL, TASK_STACK_SIZE) \ + TASK(CHIPSET, chipset_task, NULL, TASK_STACK_SIZE) \ TASK(I8042CMD, i8042_command_task, NULL, TASK_STACK_SIZE) \ TASK(KEYSCAN, keyboard_scan_task, NULL, TASK_STACK_SIZE) \ TASK(SWITCH, switch_task, NULL, TASK_STACK_SIZE) \ |